feat: add STARTUP_DELAY to entrypoint.sh (#592)

Ref #591 

Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
Tim Birkett
2021-06-04 00:57:59 +01:00
committed by GitHub
parent 7523ea44f1
commit a93fd21f21
2 changed files with 60 additions and 0 deletions

View File

@@ -1,5 +1,10 @@
#!/bin/bash
if [ ! -z "${STARTUP_DELAY}" ]; then
echo "Delaying startup by ${STARTUP_DELAY} seconds" 1>&2
sleep ${STARTUP_DELAY}
fi
if [ -z "${GITHUB_URL}" ]; then
echo "Working with public GitHub" 1>&2
GITHUB_URL="https://github.com/"