From 4a550af7567b6cd9bcfc295bc2d3848426d93cf2 Mon Sep 17 00:00:00 2001 From: Matt Griswold Date: Fri, 1 May 2020 15:49:07 +0000 Subject: [PATCH] update entrypoint --- dockerfiles/super_node/entrypoint.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dockerfiles/super_node/entrypoint.sh b/dockerfiles/super_node/entrypoint.sh index a4a1de6b..a5f9ae7b 100755 --- a/dockerfiles/super_node/entrypoint.sh +++ b/dockerfiles/super_node/entrypoint.sh @@ -31,18 +31,26 @@ if [ $rv != 0 ]; then exit 1 fi + echo "Beginning the vulcanizedb process" VDB_CONFIG_FILE=${VDB_CONFIG_FILE:-config.toml} DEFAULT_OPTIONS="--config=$VDB_CONFIG_FILE" VDB_FULL_CL=${VDB_FULL_CL:-$VDB_COMMAND $DEFAULT_OPTIONS} echo running: ./vulcanizedb $VDB_FULL_CL $@ +case "$1" in + "/bin/sh" ) + echo dropping to shell + exec /bin/sh +esac + vdb_args="$@" # default is to use the config passed by the build arg -if [[ -z "$vdb_args" ]]; +if [[ -z "$vdb_args" ]]; then vdb_args="--config=config.toml" fi +echo running: ./vulcanizedb $vdb_args ./vulcanizedb $vdb_args rv=$?