Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

make sure to use latest patch level of ruby base image (#9052)

Markus Kahl47a752d889c9
diff --git a/docker/ci/Dockerfile b/docker/ci/Dockerfile
index 6dac1eeb466..415904ec95f 100644
--- a/docker/ci/Dockerfile
+++ b/docker/ci/Dockerfile
@@ -1,4 +1,4 @@
-FROM ruby:2.7.2-buster
+FROM ruby:2.7-buster
MAINTAINER [email protected]
ENV USER=dev
diff --git a/docker/dev/backend/Dockerfile b/docker/dev/backend/Dockerfile
index 0061587acb4..10795c9fdb0 100644
--- a/docker/dev/backend/Dockerfile
+++ b/docker/dev/backend/Dockerfile
@@ -1,4 +1,4 @@
-FROM ruby:2.7.2-buster as develop
+FROM ruby:2.7-buster as develop
MAINTAINER [email protected]
ARG DEV_UID=1000
diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile
index c4386336672..96cca16bf1b 100644
--- a/docker/prod/Dockerfile
+++ b/docker/prod/Dockerfile
@@ -1,4 +1,4 @@
-FROM ruby:2.7.2-buster
+FROM ruby:2.7-buster
MAINTAINER [email protected]
# Allow platform-specific additions. Valid values are: on-prem,saas,bahn
diff --git a/docs/development/development-environment-docker/README.md b/docs/development/development-environment-docker/README.md
index 2116fb180c9..9fa300df0db 100644
--- a/docs/development/development-environment-docker/README.md
+++ b/docs/development/development-environment-docker/README.md
@@ -152,3 +152,20 @@ If the backend container is already running, it will be stopped.
Instead it will be started in the foreground.
This way you can debug using pry just as if you had started the server locally using `rails s`.
You can stop it simply with Ctrl + C too.
+
+## Updates
+
+When a dependency of the image or the base image itself is changed you may need
+rebuild the image. For instance when the Ruby version is updated you may run into
+an error like the following when running `bin/compose setup`:
+
+```
+Creating core_backend_run ... done
+Your Ruby version is 2.7.1, but your Gemfile specified ~> 2.7.2
+```
+
+This means that the current image is out-dated. You can update it like this:
+
+```
+bin/comose build --pull
+```