DiUS / pact_broker-docker

'Dockerised' pact broker
http://pact.io
MIT License
76 stars 102 forks source link

Upgrades: phusion passenger ruby image, ruby 2.7.4 #113

Closed nateg-gladly closed 2 years ago

nateg-gladly commented 2 years ago

Re-opening https://github.com/DiUS/pact_broker-docker/pull/111

What

Upgrade to the latest phusion passenger ruby27 docker image. The latest tag is 2.01 as shown here: https://hub.docker.com/r/phusion/passenger-ruby27/tags

It looks like the changelog for the 1.x to 2.x release is here: https://github.com/phusion/passenger-docker/blob/master/CHANGELOG.md

Why

2.x releases have a fix for this issue: https://github.com/phusion/passenger/issues/2303

We ran into this in the dius/pact-broker:2.89.1.0 image: in that image running an apt-get update && upgrade runs into this error:

Reading package lists...                                                                                                                       
E: The repository 'https://oss-binaries.phusionpassenger.com/apt/passenger focal Release' does not have a Release file. 
nateg-gladly commented 2 years ago

Build failure from the previous PR: https://github.com/DiUS/pact_broker-docker/runs/4173742227?check_suite_focus=true

Looks like we need to switch rvm to use whatever vers of ruby is in the new image

Step 2/13 : RUN bash -lc 'rvm --default use ruby-2.7.2'
 ---> Running in 3b06ead0f18a
Required ruby-2.7.2 is not installed.
bethesque commented 2 years ago

Thanks!