Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions Dockerfile.updater-core
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,6 @@ COPY --chown=dependabot:dependabot LICENSE $DEPENDABOT_HOME
# When bumping Ruby minor, need to also add the previous version to `bundler/helpers/v2/monkey_patches/definition_ruby_version_patch.rb`
COPY --from=docker.io/library/ruby:3.4.5-bookworm --chown=dependabot:dependabot /usr/local /usr/local

# We had to explicitly bump this as the bundled version `0.2.2` in ubuntu 22.04 has a bug.
# Once Ubuntu base image pulls in a new enough yaml version, we may not need to
# explicitly manage this. However, if we do opt to pull it back out, see all changes
# required in https://github.com/dependabot/dependabot-core/pull/7112
ARG LIBYAML_VERSION=0.2.5
RUN curl -sL https://pyyaml.org/download/libyaml/yaml-$LIBYAML_VERSION.tar.gz -o libyaml.tar.gz && \
mkdir -p $DEPENDABOT_HOME/src/libyaml && \
tar -xvf libyaml.tar.gz -C $DEPENDABOT_HOME/src/libyaml && \
rm libyaml.tar.gz

# For users to determine if dependabot is running
ENV DEPENDABOT=true

Expand Down Expand Up @@ -210,12 +200,11 @@ ARG RUBYGEMS_VERSION=3.6.9
ARG GEM_ENABLED=true
RUN if [[ "$GEM_ENABLED" == "true" ]]; then \
gem update --system $RUBYGEMS_VERSION; \
bundle config set --global build.psych --with-libyaml-source-dir=$DEPENDABOT_HOME/src/libyaml/yaml-$LIBYAML_VERSION; \
bundle config set --local path 'vendor'; \
bundle config set --local frozen 'true'; \
bundle config set --local without 'development'; \
bundle install; \
rm -rf ~/.bundle/cache; \
rm -rf ~/.bundle; \
fi


Expand Down
Loading