Skip to content

Commit

Permalink
Build a Ruby 3.2.3/bookworm image (#21)
Browse files Browse the repository at this point in the history
* Build a Ruby 3.2.3/bookworm image

The base image in question is

https://hub.docker.com/layers/library/ruby/3.2.3-bookworm/images/sha256-5590025acebb13cacd5a5a4e5b0733c18d841318b8b788996bb88ce1fc64c565

for buildpack, and

https://hub.docker.com/layers/library/ruby/3.2.3-slim-bookworm/images/sha256-7bd0053d5820b233c060775c8fe21d25a9f3ee1ae4fb04bc8fe7887f9c44a2f3

for the base image.

This should get us onto OpenSSL 3, which is the point of this, as well
as pick up a slightly newer Ruby version.

* Ignore the Python managed environment error

We've run into https://peps.python.org/pep-0668/, because we install a
bunch of Python packages via apt, and then try to also install the
awscli package via pip, which is not happy about having two sources of
packages.

We've always been doing this, so presumably it's safe to continue
doing so.
  • Loading branch information
sulami authored Mar 5, 2024
1 parent 86db5d3 commit 5293ef8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-rails-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- ruby: '3.2.2'
folder: '3.1.x' # slim bullseye
tag: '3.2.2-slim@sha256:81743b016046dd7e6fe55b3b408ac37735786c9dff409ca2191daffa0a66fa7e'
- ruby: '3.2.3'
folder: '3.1.x' # slim bookworm
tag: '3.2.3-slim@sha256:7bd0053d5820b233c060775c8fe21d25a9f3ee1ae4fb04bc8fe7887f9c44a2f3'
container:
image: docker:git
env:
Expand All @@ -27,8 +30,8 @@ jobs:
- name: prepare
run: |-
apk add --no-cache python3 py3-pip
pip3 install --upgrade pip
pip3 install awscli
pip3 install --break-system-packages --upgrade pip
pip3 install --break-system-packages awscli
- name: workaround git security
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@v3
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build-rails-buildpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- ruby: '3.2.2'
folder: '3.1.x' # bullseye
tag: '3.2.2@sha256:139ee8e0f51fdd5d4b291d0755287e4ef3b9e58a0a78cb054e9a9c2a68a1daa6'
- ruby: '3.2.3'
folder: '3.1.x' # bookworm
tag: '3.2.3@sha256:5590025acebb13cacd5a5a4e5b0733c18d841318b8b788996bb88ce1fc64c565'
- ruby: '3.3.0-preview1'
folder: '3.1.x' # bookworm
tag: '3.3.0-preview1@sha256:4eb0a0d89cac283399a31ab7c690e91e39de9eb836452ef48bc6f9b30f61854d'
Expand All @@ -30,8 +33,8 @@ jobs:
- name: prepare
run: |-
apk add --no-cache python3 py3-pip
pip3 install --upgrade pip
pip3 install awscli
pip3 install --break-system-packages --upgrade pip
pip3 install --break-system-packages awscli
- name: workaround git security
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clone-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: prepare
run: |-
apk add --no-cache python3 py3-pip
pip3 install --upgrade pip
pip3 install awscli
pip3 install --break-system-packages --upgrade pip
pip3 install --break-system-packages awscli
- name: workaround git security
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions rails-buildpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public.ecr.aws/degica/rails-buildpack:3.1
public.ecr.aws/degica/rails-buildpack:3.1.4
public.ecr.aws/degica/rails-buildpack:3.2.1
public.ecr.aws/degica/rails-buildpack:3.2.2
public.ecr.aws/degica/rails-buildpack:3.2.3
```

Additional older buildpacks can be found at https://gallery.ecr.aws/degica/rails-buildpack
Expand Down

0 comments on commit 5293ef8

Please sign in to comment.