update entrypoint
This commit is contained in:
parent
1413533a04
commit
4a550af756
@ -31,18 +31,26 @@ if [ $rv != 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "Beginning the vulcanizedb process"
|
echo "Beginning the vulcanizedb process"
|
||||||
VDB_CONFIG_FILE=${VDB_CONFIG_FILE:-config.toml}
|
VDB_CONFIG_FILE=${VDB_CONFIG_FILE:-config.toml}
|
||||||
DEFAULT_OPTIONS="--config=$VDB_CONFIG_FILE"
|
DEFAULT_OPTIONS="--config=$VDB_CONFIG_FILE"
|
||||||
VDB_FULL_CL=${VDB_FULL_CL:-$VDB_COMMAND $DEFAULT_OPTIONS}
|
VDB_FULL_CL=${VDB_FULL_CL:-$VDB_COMMAND $DEFAULT_OPTIONS}
|
||||||
echo running: ./vulcanizedb $VDB_FULL_CL $@
|
echo running: ./vulcanizedb $VDB_FULL_CL $@
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
"/bin/sh" )
|
||||||
|
echo dropping to shell
|
||||||
|
exec /bin/sh
|
||||||
|
esac
|
||||||
|
|
||||||
vdb_args="$@"
|
vdb_args="$@"
|
||||||
# default is to use the config passed by the build arg
|
# 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"
|
vdb_args="--config=config.toml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo running: ./vulcanizedb $vdb_args
|
||||||
./vulcanizedb $vdb_args
|
./vulcanizedb $vdb_args
|
||||||
rv=$?
|
rv=$?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user