handoff launch of command to baseimage /entrypoint.sh

This commit is contained in:
Sameer Naik
2016-03-22 00:10:33 +05:30
parent 3d71472cf9
commit 01d4f6803c

View File

@@ -14,10 +14,7 @@ export MARIADB_PORT=${MARIADB_PORT:-"3306"}
status=`harpoon inspect redmine`
if [[ "$status" == *'"lifecycle": "unpacked"'* && "$1" == "harpoon" && "$2" == "start" ]]; then
harpoon initialize redmine --inputs-file=/inputs.json
/entrypoint.sh
echo "Starting application..."
else
/entrypoint.sh
fi
exec tini -- "$@"
exec /entrypoint.sh "$@"