Skip to content

Commit

Permalink
feat(deps): upgrade to rack 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 22, 2020
1 parent 13d81e4 commit aa858cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.6.4-alpine
FROM ruby:2.6.6-alpine

# Installation path
ENV HOME=/pact_broker
Expand All @@ -7,17 +7,21 @@ ENV HOME=/pact_broker
RUN set -ex && \
adduser -h $HOME -s /bin/false -D -S -G root ruby && \
chmod g+w $HOME && \
apk add --update --no-cache make gcc libc-dev mariadb-dev postgresql-dev sqlite-dev
apk add --update --no-cache make gcc libc-dev mariadb-dev postgresql-dev sqlite-dev git

# Install Gems
WORKDIR $HOME
COPY pact_broker/Gemfile pact_broker/Gemfile.lock $HOME/
RUN cat Gemfile.lock | grep -A1 "BUNDLED WITH" | tail -n1 | awk '{print $1}' > BUNDLER_VERSION
RUN set -ex && \
gem install bundler -v $(cat BUNDLER_VERSION) && \
bundle install --no-cache --deployment --without='development test' && \
ls /usr/local/lib/ruby/gems/2.6.0 && \
gem uninstall --install-dir /usr/local/lib/ruby/gems/2.6.0 -x rake && \
bundle config set deployment 'true' && \
bundle config set no-cache 'true' && \
bundle install --without='development test' && \
rm -rf vendor/bundle/ruby/*/cache .bundle/cache && \
apk del make gcc libc-dev
apk del make gcc libc-dev git

# Install source
COPY pact_broker $HOME/
Expand Down
1 change: 1 addition & 0 deletions pact_broker/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ gem "pg", "~>1.0"
gem "puma", "~> 3.12"
gem "mysql2", "~>0.3"
gem "sqlite3", "~>1.3"
gem "rake", "~> 13.0"
2 changes: 2 additions & 0 deletions pact_broker/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ GEM
rack (2.2.3)
rack-protection (2.0.8.1)
rack
rake (13.0.1)
randexp (0.1.7)
redcarpet (3.5.0)
reform (2.3.3)
Expand Down Expand Up @@ -170,6 +171,7 @@ DEPENDENCIES
pact_broker
pg (~> 1.0)
puma (~> 3.12)
rake (~> 13.0)
sqlite3 (~> 1.3)

BUNDLED WITH
Expand Down

3 comments on commit aa858cc

@msudeepta
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @bethesque , any idea when we can get this image published ?

@samzee
Copy link

@samzee samzee commented on aa858cc Jul 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @bethesque , i am new to Github, When will the image be published with these changes? how does this process work , do we need to do anything or is it automatic, thanks.

@bethesque
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's out now. Grab pactfoundation/pact-broker:2.58.3.0

Please sign in to comment.