To update the version of Ruby used in Postfacto, the following steps need to be taken:
-
Update the
.tool-versions
file for anyone using asdf-vm -
In
api/
, update.ruby-version
andGemfile
, then runbundle install
to updateGemfile.lock
-
In
e2e/
, update.ruby-version
andGemfile
, then runbundle install
to updateGemfile.lock
-
In
docker/dev/Dockerfile
, update the lineENV RUBY_VERSION <version>
-
In
docker.sh
, update the command withpostfacto/dev:<version>
-
From the root directory, run the following command to build and tag the new image:
docker build . -f ./docker/dev/Dockerfile -t postfacto/dev:<version>
-
Test the new image and all of the updates by running
docker.sh
then running the tests inside the container withcd postfacto && ./test.sh
-
Publish the new
postfacto:dev
image to Docker Hub -
Update the pinned buildpacks in
deployment/{cf,tas}/config/manifest.yml
, according to the latest release that supports the selected version -
Update the pinned buildpacks in
deployment/{deploy,upgrade}-heroku.sh
, according to the latest release that supports the selected version -
You can now commit and push and make sure everything passes in CI