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=$?