Skip to content

Commit

Permalink
provide a workaround for ruby/resolv/issues/23 (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobSilent authored Nov 9, 2022
1 parent c9d3d1d commit ee2d611
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/script/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
7 changes: 7 additions & 0 deletions src/script/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
if [ -n "$WORKAROUND_CMD" ]; then
eval "$WORKAROUND_CMD"
fi

# This will exec the CMD from Dockerfile
exec "$@"

0 comments on commit ee2d611

Please sign in to comment.