From ee2d611d9213198e5593b2427d5784c667ebc40c Mon Sep 17 00:00:00 2001 From: Andre Mainka Date: Wed, 9 Nov 2022 08:29:33 +0100 Subject: [PATCH] provide a workaround for ruby/resolv/issues/23 (#369) --- src/script/Dockerfile | 4 +++- src/script/entrypoint.sh | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/script/entrypoint.sh diff --git a/src/script/Dockerfile b/src/script/Dockerfile index bf34eb61..b2177553 100644 --- a/src/script/Dockerfile +++ b/src/script/Dockerfile @@ -21,6 +21,8 @@ RUN bundle config set --local path "vendor" \ # Copy the Ruby scripts COPY --chown=dependabot:dependabot update-script.rb ${CODE_DIR} COPY --chown=dependabot:dependabot azure_helpers.rb ${CODE_DIR} +COPY --chown=dependabot:dependabot entrypoint.sh ${CODE_DIR} # Run update script -ENTRYPOINT ["bundle", "exec", "ruby", "./update-script.rb"] +ENTRYPOINT ["./entrypoint.sh"] +CMD ["bundle", "exec", "ruby", "./update-script.rb"] diff --git a/src/script/entrypoint.sh b/src/script/entrypoint.sh new file mode 100644 index 00000000..1f30a73a --- /dev/null +++ b/src/script/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/sh +if [ -n "$WORKAROUND_CMD" ]; then + eval "$WORKAROUND_CMD" +fi + +# This will exec the CMD from Dockerfile +exec "$@"