Skip to content

Commit

Permalink
Test new entrypoint for cnode
Browse files Browse the repository at this point in the history
  • Loading branch information
dostrelith678 committed Nov 30, 2021
1 parent 259597c commit ff812ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions files/docker/node/addons/entrypoint.sh
Expand Up @@ -41,25 +41,30 @@ export UPDATE_CHECK='N'
if [[ "$NETWORK" == "mainnet" ]]; then
$CNODE_HOME/scripts/prereqs.sh -n mainnet -t cnode -s -f > /dev/null 2>&1 \
&& customise \
&& exec $CNODE_HOME/scripts/cnode.sh
&& cd $CNODE_HOME/scripts \
&& exec ./cnode.sh
elif [[ "$NETWORK" == "testnet" ]]; then
$CNODE_HOME/scripts/prereqs.sh -n testnet -t cnode -s -f > /dev/null 2>&1 \
&& customise \
&& exec $CNODE_HOME/scripts/cnode.sh
&& cd $CNODE_HOME/scripts \
&& exec ./cnode.sh
elif [[ "$NETWORK" == "staging" ]]; then
$CNODE_HOME/scripts/prereqs.sh -n staging -t cnode -s -f > /dev/null 2>&1 \
&& customise \
&& exec $CNODE_HOME/scripts/cnode.sh
&& cd $CNODE_HOME/scripts \
&& exec ./cnode.sh
elif [[ "$NETWORK" == "guild-mainnet" ]]; then
$CNODE_HOME/scripts/prereqs.sh -n mainnet -t cnode -s -f > /dev/null 2>&1 \
&& bash /home/guild/.scripts/guild-topology.sh > /dev/null 2>&1 \
&& export TOPOLOGY="${CNODE_HOME}/files/guildnet-topology.json" \
&& customise \
&& exec $CNODE_HOME/scripts/cnode.sh
&& cd $CNODE_HOME/scripts \
&& exec ./cnode.sh
elif [[ "$NETWORK" == "guild" ]]; then
$CNODE_HOME/scripts/prereqs.sh -n guild -t cnode -s -f > /dev/null 2>&1 \
&& customise \
&& exec $CNODE_HOME/scripts/cnode.sh
&& cd $CNODE_HOME/scripts \
&& exec ./cnode.sh
else
echo "Please set a NETWORK environment variable to one of: mainnet / testnet / staging / guild-mainnet / guild"
echo "mount a '$CNODE_HOME/priv/files' volume containing: mainnet-config.json, mainnet-shelley-genesis.json, mainnet-byron-genesis.json, and mainnet-topology.json "
Expand Down
2 changes: 1 addition & 1 deletion files/docker/node/dockerfile_stage3
Expand Up @@ -69,7 +69,7 @@ ADD https://raw.githubusercontent.com/cardano-community/guild-operators/master/f
ADD https://raw.githubusercontent.com/cardano-community/guild-operators/master/files/docker/node/addons/block_watcher.sh /home/guild/.scripts/
ADD https://raw.githubusercontent.com/cardano-community/guild-operators/master/files/docker/node/addons/healthcheck.sh /home/guild/.scripts/
ADD https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/prereqs.sh /opt/cardano/cnode/scripts/
ADD https://raw.githubusercontent.com/cardano-community/guild-operators/master/files/docker/node/addons/entrypoint.sh ./
ADD https://raw.githubusercontent.com/cardano-community/guild-operators/docker-testing/files/docker/node/addons/entrypoint.sh ./

RUN sudo chown -R guild:guild $CNODE_HOME/* \
&& sudo chown -R guild:guild /home/guild/.* \
Expand Down

0 comments on commit ff812ce

Please sign in to comment.