Added simple docker entrypoint for now.
This commit is contained in:
parent
04ba8f6c5c
commit
c50e00ca56
1 changed files with 14 additions and 0 deletions
14
chainquery/docker-entrypoint.sh
Normal file
14
chainquery/docker-entrypoint.sh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# default to run whatever the user wanted like "/bin/bash"
|
||||||
|
## If user runs no need to run any more of the entrypoint script.
|
||||||
|
if [[ -z "$@" ]]; then
|
||||||
|
echo "User did not attempt input. Now executing docker-entrypoint."
|
||||||
|
else
|
||||||
|
echo "Running $@."
|
||||||
|
exec "$@"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
/bin/bash
|
Loading…
Add table
Reference in a new issue