File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ ENV ethereum ""
5151# The role the node should have, one of index-node, query-node, or
5252# combined-node
5353ENV node_role "combined-node"
54+ # The name of this node
55+ ENV node_id "default"
5456
5557# HTTP port
5658EXPOSE 8000
Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ start_query_node() {
5858start_index_node () {
5959 # Only the index node with the name set in BLOCK_INGESTOR should ingest
6060 # blocks
61- if [[ ${pod_name } != " ${BLOCK_INGESTOR} " ]]; then
61+ if [[ ${node_id } != " ${BLOCK_INGESTOR} " ]]; then
6262 export DISABLE_BLOCK_INGESTOR=true
6363 fi
6464
6565 graph-node \
66- --node-id " ${pod_name // -/ _} " \
66+ --node-id " ${node_id // -/ _} " \
6767 --postgres-url " $postgres_url " \
6868 --ethereum-rpc $ethereum \
6969 --ipfs " $ipfs "
@@ -84,7 +84,7 @@ sleep 5
8484
8585trap save_coredumps EXIT
8686
87- export PGAPPNAME=" ${pod_name -$HOSTNAME } "
87+ export PGAPPNAME=" ${node_id -$HOSTNAME } "
8888
8989case " ${node_role-combined-node} " in
9090 query-node)
You can’t perform that action at this time.
0 commit comments