Skip to content

Commit 1e2bbbc

Browse files
committed
Update CI Dockerfile to Ruby 3.4.7 and Ubuntu Jammy
- Update base image from ubuntu:bionic to ubuntu:jammy - Remove old Ruby versions (2.5.9, 2.7.6, 3.0.4, 3.1.3) - Install only Ruby 3.4.7 and set as global default - Update libssl1.0-dev to libssl-dev for jammy compatibility - Update python to python3 (Python 2 removed from jammy) - Align bundler version with Gemfile.lock (2.3.12) This streamlines CI builds and aligns with the Ruby 3.4.7 migration. Reduces Docker image build time and size by removing 3 unused Ruby versions.
1 parent 8d7800b commit 1e2bbbc

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

ci/Dockerfile

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG base_image=ubuntu:bionic
1+
ARG base_image=ubuntu:jammy
22
FROM ${base_image}
33

44
RUN apt-get update && apt-get install -y wget gnupg
@@ -10,11 +10,13 @@ RUN apt-get update && apt-get install -y \
1010
build-essential \
1111
curl \
1212
git \
13-
libssl1.0-dev \
13+
libffi-dev \
14+
libssl-dev \
1415
libreadline-dev \
16+
libyaml-dev \
1517
lsb-release \
1618
locales \
17-
python \
19+
python3 \
1820
zip \
1921
zlib1g-dev \
2022
bellsoft-java17 \
@@ -32,16 +34,8 @@ RUN eval "$(rbenv init -)" \
3234

3335
RUN eval "$(rbenv init -)" \
3436
&& git clone https://github.com/sstephenson/rbenv-default-gems.git $(rbenv root)/plugins/rbenv-default-gems \
35-
&& echo 'bundler 2.3.26' >> $(rbenv root)/default-gems
37+
&& echo 'bundler 2.3.12' >> $(rbenv root)/default-gems
3638

3739
RUN eval "$(rbenv init -)" \
38-
&& rbenv install 2.5.9
39-
40-
RUN eval "$(rbenv init -)" \
41-
&& rbenv install 2.7.6
42-
43-
RUN eval "$(rbenv init -)" \
44-
&& rbenv install 3.0.4
45-
46-
RUN eval "$(rbenv init -)" \
47-
&& rbenv install 3.1.3
40+
&& rbenv install 3.4.7 \
41+
&& rbenv global 3.4.7

0 commit comments

Comments
 (0)