From 1c3f7a6a60f07c972b753d7d6f8f59d2e46fa52a Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Wed, 14 Jul 2021 17:32:39 +0700 Subject: [PATCH] Updated shell and entrypoint --- entrypoint.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 879a9c5..c87dbfb 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,5 +27,13 @@ if [ -z $semicolon_delimited_script ]; then semicolon_delimited_script="echo $(whoami)" fi -echo "End.............................." -#exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --workdir $WORKDIR -v $WORKDIR:"/github/workspace" --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`" \ No newline at end of file +echo "My name is: $(whoami)" + +echo "Start executing docker..." + +INPUT_OPTIONS="--workdir $WORKDIR -v $WORKDIR:$WORKDIR $INPUT_OPTIONS" +echo $INPUT_OPTIONS + +docker ps + +exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`" \ No newline at end of file