Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update genesis-network.json to add roster entries and more #1122

Merged
merged 13 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"bracketSpacing": false,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid"
"arrowParens": "avoid",
"printWidth": 120
}
51 changes: 32 additions & 19 deletions Taskfile.helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ vars:
solo_keys_dir: "{{ .solo_cache_dir }}/keys"
solo_bin_dir: "{{ .solo_user_dir }}/bin"
run_build_file:
sh: (echo "/tmp/run-build-$(date +%Y%m%d%H%M%S)")
sh: (echo "/tmp/${USER}-run-build-$(date +%Y%m%d%H%M%S)")
var_check_file:
sh: (echo "/tmp/var-check-$(date +%Y%m%d%H%M%S)")
sh: (echo "/tmp/${USER}-var-check-$(date +%Y%m%d%H%M%S)")
minio_flag_file:
sh: (echo "/tmp/minio-flag-$(date +%Y%m%d%H%M%S)")
solo_chart_file:
sh: (echo "/tmp/solo-chart-$(date +%Y%m%d%H%M%S)")
solo_consensus_file:
sh: (echo "/tmp/solo-consensus-$(date +%Y%m%d%H%M%S)")
sh: (echo "/tmp/${USER}-minio-flag-$(date +%Y%m%d%H%M%S)")
solo_install_file:
sh: (echo "/tmp/${USER}-solo-install-$(date +%Y%m%d%H%M%S)")

env:
SOLO_CLUSTER_SETUP_NAMESPACE: solo-setup
Expand Down Expand Up @@ -75,6 +73,8 @@ tasks:
- echo "LOG4J2_FLAG=${LOG4J2_FLAG}"
- echo "APPLICATION_PROPERTIES_FLAG=${APPLICATION_PROPERTIES_FLAG}"
- echo "LOCAL_BUILD_FLAG=${LOCAL_BUILD_FLAG}"
- echo "DEBUG_NODE_ALIAS=${DEBUG_NODE_ALIAS}"
- echo "SOLO_CHARTS_DIR_FLAG=${SOLO_CHARTS_DIR_FLAG}"
- touch {{ .var_check_file }}

readme:
Expand All @@ -92,10 +92,18 @@ tasks:
- echo "Use command 'task default-with-relay' to deploy the network with a relay node."

install:solo:
silent: true
internal: true
status:
- test -f {{ .solo_install_file }}
cmds:
- cd ..
- |
if [[ "$(ls -1 package.json)" == "" ]]; then
cd ..
fi
pwd
- npm install
- touch {{ .solo_install_file }}

install:kubectl:darwin:
internal: true
Expand Down Expand Up @@ -157,14 +165,16 @@ tasks:
- task: "init"
cmds:
- |
unset RELEASE_FLAG
if [[ "${LOCAL_BUILD_FLAG}" == "" ]]; then
export RELEASE_FLAG='--release-tag {{.CONSENSUS_NODE_VERSION}}'
if [[ "${DEBUG_NODE_ALIAS}" != "" ]]; then
export DEBUG_NODE_FLAG="--debug-node-alias {{ .DEBUG_NODE_ALIAS }}"
fi
if [[ "${CONSENSUS_NODE_VERSION}" != "" ]]; then
export CONSENSUS_NODE_FLAG='--release-tag {{.CONSENSUS_NODE_VERSION}}'
fi
if [[ "${SOLO_CHART_VERSION}" != "" ]]; then
export SOLO_CHART_FLAG='--solo-chart-version ${SOLO_CHART_VERSION}'
fi
SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- network deploy --namespace "${SOLO_NAMESPACE}" --node-aliases-unparsed {{.node_identifiers}} ${RELEASE_FLAG} ${SOLO_CHART_FLAG} ${VALUES_FLAG} ${SETTINGS_FLAG} ${LOG4J2_FLAG} ${APPLICATION_PROPERTIES_FLAG} ${GENESIS_THROTTLES_FLAG} -q
SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- network deploy --namespace "${SOLO_NAMESPACE}" --node-aliases-unparsed {{.node_identifiers}} ${CONSENSUS_NODE_FLAG} ${SOLO_CHART_FLAG} ${VALUES_FLAG} ${SETTINGS_FLAG} ${LOG4J2_FLAG} ${APPLICATION_PROPERTIES_FLAG} ${GENESIS_THROTTLES_FLAG} ${DEBUG_NODE_FLAG} ${SOLO_CHARTS_DIR_FLAG} -q
- |
if [[ "${CONSENSUS_NODE_VERSION}" != "" ]]; then
export CONSENSUS_NODE_FLAG='--release-tag ${CONSENSUS_NODE_VERSION}'
Expand All @@ -183,7 +193,11 @@ tasks:
deps:
- task: "init"
cmds:
- SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- node start --namespace "${SOLO_NAMESPACE}" --node-aliases-unparsed {{.node_identifiers}} -q {{ .CLI_ARGS }}
- |
if [[ "${DEBUG_NODE_ALIAS}" != "" ]]; then
export DEBUG_NODE_FLAG="--debug-node-alias {{ .DEBUG_NODE_ALIAS }}"
fi
SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- node start --namespace "${SOLO_NAMESPACE}" --node-aliases-unparsed {{.node_identifiers}} ${DEBUG_NODE_FLAG} -q {{ .CLI_ARGS }}
- |
if [[ "{{ .use_port_forwards }}" == "true" ]];then
echo "Enable port forwarding for Hedera Node"
Expand Down Expand Up @@ -259,7 +273,7 @@ tasks:
deps:
- task: "init"
cmds:
- SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- cluster setup --cluster-setup-namespace "${SOLO_CLUSTER_SETUP_NAMESPACE}" -q
- SOLO_HOME_DIR=${SOLO_HOME_DIR} npm run solo -- cluster setup --cluster-setup-namespace "${SOLO_CLUSTER_SETUP_NAMESPACE}" ${SOLO_CHARTS_DIR_FLAG} -q

cluster:destroy:
cmds:
Expand Down Expand Up @@ -409,8 +423,7 @@ tasks:
silent: true
cmds:
- echo "Cleaning up temporary files..."
- rm -f /tmp/run-build-*
- rm -f /tmp/var-check-*
- rm -f /tmp/minio-flag-*
- rm -f /tmp/solo-chart-*
- rm -f /tmp/solo-consensus-*
- rm -f /tmp/${USER}-run-build-* || true
- rm -f /tmp/${USER}-var-check-* || true
- rm -f /tmp/${USER}-minio-flag-* || true
- rm -f /tmp/${USER}-solo-install-* || true
4 changes: 4 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ env:
SOLO_NAMESPACE: solo-e2e
# SOLO_CHART_VERSION: 0.39.0
# CONSENSUS_NODE_VERSION: v0.58.0
HEDERA_SERVICES_ROOT: "/Users/user/source/hedera-services"
# LOCAL_BUILD_FLAG: "--local-build-path {{.HEDERA_SERVICES_ROOT}}/hedera-node/data"
# DEBUG_NODE_ALIAS: "node2"
# SOLO_CHARTS_DIR_FLAG: "-d /Users/user/source/solo-charts/charts"
vars:
use_port_forwards: "true"

Expand Down
12 changes: 10 additions & 2 deletions examples/custom-network-config/init-containers-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ hedera:
mountPath: /data-saved
nodes:
- name: node1
nodeId: 0
accountId: 0.0.3
root:
resources:
Expand All @@ -19,6 +20,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node2
nodeId: 1
accountId: 0.0.4
root:
resources:
Expand All @@ -29,6 +31,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node3
nodeId: 2
accountId: 0.0.5
root:
resources:
Expand All @@ -39,6 +42,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node4
nodeId: 3
accountId: 0.0.6
root:
resources:
Expand All @@ -49,6 +53,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node5
nodeId: 4
accountId: 0.0.7
root:
resources:
Expand All @@ -59,6 +64,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node6
nodeId: 5
accountId: 0.0.8
root:
resources:
Expand All @@ -69,6 +75,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node7
nodeId: 6
accountId: 0.0.9
root:
resources:
Expand All @@ -79,6 +86,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node8
nodeId: 7
accountId: 0.0.10
root:
resources:
Expand All @@ -89,6 +97,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node9
nodeId: 8
accountId: 0.0.11
root:
resources:
Expand All @@ -99,6 +108,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node10
nodeId: 9
accountId: 0.0.12
root:
resources:
Expand All @@ -109,8 +119,6 @@ hedera:
cpu: 24
memory: 256Gi
defaults:
envoyProxy:
loadBalancerEnabled: true
sidecars:
recordStreamUploader:
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ hedera:
mountPath: /data-saved
nodes:
- name: node1
nodeId: 0
accountId: 0.0.3
root:
resources:
Expand All @@ -19,6 +20,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node2
nodeId: 1
accountId: 0.0.4
root:
resources:
Expand All @@ -29,6 +31,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node3
nodeId: 2
accountId: 0.0.5
root:
resources:
Expand All @@ -39,6 +42,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node4
nodeId: 3
accountId: 0.0.6
root:
resources:
Expand All @@ -49,6 +53,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node5
nodeId: 4
accountId: 0.0.7
root:
resources:
Expand All @@ -59,6 +64,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node6
nodeId: 5
accountId: 0.0.8
root:
resources:
Expand All @@ -69,6 +75,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node7
nodeId: 6
accountId: 0.0.9
root:
resources:
Expand All @@ -79,6 +86,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node8
nodeId: 7
accountId: 0.0.10
root:
resources:
Expand All @@ -89,6 +97,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node9
nodeId: 8
accountId: 0.0.11
root:
resources:
Expand All @@ -99,6 +108,7 @@ hedera:
cpu: 24
memory: 256Gi
- name: node10
nodeId: 9
accountId: 0.0.12
root:
resources:
Expand All @@ -111,8 +121,6 @@ hedera:
defaults:
haproxy:
serviceType: NodePort
envoyProxy:
loadBalancerEnabled: true
sidecars:
recordStreamUploader:
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ hedera:
mountPath: /data-saved
nodes:
- name: node0
nodeId: 0
accountId: 0.0.3
root:
resources:
Expand All @@ -19,6 +20,7 @@ hedera:
cpu: 4
memory: 31Gi
- name: node1
nodeId: 1
accountId: 0.0.4
root:
resources:
Expand All @@ -29,6 +31,7 @@ hedera:
cpu: 4
memory: 31Gi
- name: node2
nodeId: 2
accountId: 0.0.5
root:
resources:
Expand All @@ -39,6 +42,7 @@ hedera:
cpu: 4
memory: 31Gi
- name: node3
nodeId: 3
accountId: 0.0.6
root:
resources:
Expand All @@ -49,6 +53,7 @@ hedera:
cpu: 4
memory: 31Gi
- name: node4
nodeId: 4
accountId: 0.0.7
root:
resources:
Expand All @@ -59,6 +64,7 @@ hedera:
cpu: 4
memory: 31Gi
- name: node5
nodeId: 5
accountId: 0.0.8
root:
resources:
Expand All @@ -69,6 +75,7 @@ hedera:
cpu: 4
memory: 31Gi
- name: node6
nodeId: 6
accountId: 0.0.9
root:
resources:
Expand All @@ -79,8 +86,6 @@ hedera:
cpu: 4
memory: 31Gi
defaults:
envoyProxy:
loadBalancerEnabled: true
sidecars:
recordStreamUploader:
resources:
Expand Down
1 change: 1 addition & 0 deletions examples/solo-gke-test/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ env:
HEDERA_SERVICES_ROOT: "/Users/user/source/hedera-services"
LOCAL_BUILD_FLAG: "--local-build-path {{.HEDERA_SERVICES_ROOT}}/hedera-node/data"
GENESIS_THROTTLES_FLAG: "--genesis-throttles-file {{.USER_WORKING_DIR}}/throttles.json"
# SOLO_CHARTS_DIR_FLAG: "-d /Users/user/source/solo-charts/charts"
Loading
Loading