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

* make sure to use latest patch level of ruby base image

* how to handle outdated images
pull/9059/head
Markus Kahl 4 years ago committed by GitHub
parent 487811aa86
commit 47a752d889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docker/ci/Dockerfile
  2. 2
      docker/dev/backend/Dockerfile
  3. 2
      docker/prod/Dockerfile
  4. 17
      docs/development/development-environment-docker/README.md

@ -1,4 +1,4 @@
FROM ruby:2.7.2-buster
FROM ruby:2.7-buster
MAINTAINER operations@openproject.com
ENV USER=dev

@ -1,4 +1,4 @@
FROM ruby:2.7.2-buster as develop
FROM ruby:2.7-buster as develop
MAINTAINER operations@openproject.com
ARG DEV_UID=1000

@ -1,4 +1,4 @@
FROM ruby:2.7.2-buster
FROM ruby:2.7-buster
MAINTAINER operations@openproject.com
# Allow platform-specific additions. Valid values are: on-prem,saas,bahn

@ -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
```

Loading…
Cancel
Save