To update the version of Ruby used in Postfacto, the following steps need to be taken:
-
Update the
.tool-versionsfile for anyone using asdf-vm -
In
api/, update.ruby-versionandGemfile, then runbundle installto updateGemfile.lock -
In
e2e/, update.ruby-versionandGemfile, then runbundle installto 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.shthen running the tests inside the container withcd postfacto && ./test.sh -
Publish the new
postfacto:devimage 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