Skip to content

Commit

Permalink
Custom chain ID from env
Browse files Browse the repository at this point in the history
  • Loading branch information
levackt committed Jul 19, 2022
1 parent c6d3e91 commit aa34613
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
6 changes: 1 addition & 5 deletions deployment/docker/bootstrap/bootstrap_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ if [ ! -e "$file" ]; then
rm -rf ~/.secretd/*
rm -rf /opt/secret/.sgx_secrets/*

if [ -z "${CHAINID}" ]; then
chain_id="$CHAINID"
else
chain_id="supernova-1"
fi
chain_id=${CHAINID:-supernova-1}

mkdir -p ./.sgx_secrets
secretd config chain-id "$chain_id"
Expand Down
6 changes: 1 addition & 5 deletions deployment/docker/devimage/bootstrap_init_no_stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ then
rm -rf ~/.secretd/*
rm -rf /opt/secret/.sgx_secrets/*

if [ -z "${CHAINID}" ]; then
chain_id="$CHAINID"
else
chain_id="secretdev-1"
fi
chain_id=${CHAINID:-secretdev-1}

mkdir -p ./.sgx_secrets
secretd config chain-id "$chain_id"
Expand Down
2 changes: 1 addition & 1 deletion deployment/dockerfiles/custom-node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ RUN mkdir -p /root/.secretd/.node/

####### Node parameters
ARG MONIKER=default
ARG CHAINID=secret-testnet-1
ARG CHAINID=secretdev-1
ARG GENESISPATH=https://raw.githubusercontent.com/enigmampc/SecretNetwork/master/secret-testnet-genesis.json
ARG PERSISTENT_PEERS=201cff36d13c6352acfc4a373b60e83211cd3102@bootstrap.southuk.azure.com:26656

Expand Down
2 changes: 1 addition & 1 deletion deployment/dockerfiles/release.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ RUN mkdir -p /root/config/

####### Node parameters
ARG MONIKER=default
ARG CHAINID=secret-testnet-1
ARG CHAINID=secretdev-1
ARG GENESISPATH=https://raw.githubusercontent.com/enigmampc/SecretNetwork/master/secret-testnet-genesis.json
ARG PERSISTENT_PEERS=201cff36d13c6352acfc4a373b60e83211cd3102@bootstrap.southuk.azure.com:26656

Expand Down

0 comments on commit aa34613

Please sign in to comment.