Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #293 from cyberark/update-bundler
Browse files Browse the repository at this point in the history
Updates bundler usage Docker files
  • Loading branch information
juniortaeza authored Aug 17, 2022
2 parents 77fef3c + d399232 commit a17b4f4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ RUN bundle config build.nokogiri --use-system-libraries && \

# Exclude 'development' and 'test' dependency groups when building the
# base/production Service Broker image.
RUN bundle install --no-deployment --frozen --system --without development test
RUN bundle config set --local frozen 'true' && \
bundle config set --local system 'true' && \
bundle config set --local without 'development test' && \
bundle install --no-deployment

COPY . /app/
8 changes: 4 additions & 4 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ COPY Gemfile \
Gemfile.lock /tmp/
WORKDIR /tmp

# For bundle version < 2.0, bundle remembers the groups that had been
# excluded for the previous invocation of bundle. So use `--with`
# to explicitly include the development group.
RUN bundle install --no-deployment --frozen --system --with development
RUN bundle config set --local frozen 'true' && \
bundle config set --local system 'true' && \
bundle config set --local with 'development' && \
bundle install --no-deployment

RUN mkdir -p /app
WORKDIR /app
9 changes: 5 additions & 4 deletions Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ COPY Gemfile \
Gemfile.lock /tmp/
WORKDIR /tmp

# For bundle version < 2.0, bundle remembers the groups that had been
# excluded for the previous invocation of bundle. So use `--with`
# to explicitly include the test group.
RUN bundle install --no-deployment --frozen --system --with test --without development
RUN bundle config set --local frozen 'true' && \
bundle config set --local system 'true' && \
bundle config set --local with 'test' && \
bundle config set --local without 'development' && \
bundle install --no-deployment

RUN mkdir -p /app
WORKDIR /app

0 comments on commit a17b4f4

Please sign in to comment.