Skip to content
Snippets Groups Projects
Commit 236cdd94 authored by Ethan Buchman's avatar Ethan Buchman
Browse files

add ecm version, fix config

parent 4deae774
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,7 @@ ENV ECM_PATH /usr/local/lib/ecm/
RUN mkdir -p $ECM_PATH
COPY DOCKER/chain_* $ECM_PATH
COPY DOCKER/config.toml $ECM_PATH
COPY DOCKER/version.sh $ECM_PATH
RUN chown -R eris $ECM_PATH
......
......@@ -16,7 +16,14 @@ else
cp genesis.json $CHAIN_DIR/genesis.json
fi
mintconfig $CONFIG_OPTS > $CHAIN_DIR/config.toml
# if no config was given, lay one with the given options
if [ ! -f $CHAIN_DIR/config.toml ]; then
echo "running mintconfig $CONFIG_OPTS"
mintconfig $CONFIG_OPTS > $CHAIN_DIR/config.toml
else
echo "found config file:"
cat $CHAIN_DIR/config.toml
fi
if [ "$RUN" = "true" ]; then
tendermint node
......
......@@ -51,6 +51,9 @@ export NODE_HOST
export ECM_PATH # set by Dockerfile
# print the version
bash $ECM_PATH/version.sh
#-----------------------------------------------------------------------
# either we are fetching a chain for the first time,
# creating one from scratch, or running one we already have
......
echo "ecm version 0.0.2"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment