Skip to content

Commit e3a919c

Browse files
committed
drop ruby 3.0 it’s EOL
1 parent c478960 commit e3a919c

File tree

6 files changed

+15
-53
lines changed

6 files changed

+15
-53
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.0.6 (release date: TBD)
2+
* Removed Ruby 3.0 (EOL 2024-04-23)
3+
14
## 3.0.5 (release date: 2024-05-18)
25
* Upgraded to Phusion Passenger 6.0.22 (from 6.0.21).
36

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ FORCE:
4141

4242
# when adding a cRuby image, also update image/nginx-passenger.sh and image/ruby-support/finalize.sh
4343
SPECIAL_IMAGES := customizable full
44-
CRUBY_IMAGES := ruby30 ruby31 ruby32 ruby33
44+
CRUBY_IMAGES := ruby31 ruby32 ruby33
4545
PYTHON_IMAGES := python38 python39 python310 python311 python312
4646
MISC_IMAGES := jruby93 jruby94 nodejs
4747

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Basics (learn more at [baseimage-docker](http://phusion.github.io/baseimage-dock
9494

9595
Language support:
9696

97-
* Ruby 3.0.7, 3.1.5, 3.2.4, 3.3.1 and JRuby 9.3.14.0 and 9.4.6.0.
97+
* Ruby 3.1.5, 3.2.4, 3.3.1 and JRuby 9.3.14.0 and 9.4.6.0.
9898
* RVM is used to manage Ruby versions. [Why RVM?](#why_rvm)
9999
* 3.3.1 is configured as the default.
100100
* JRuby is installed from source, but we register an APT entry for it.
@@ -129,7 +129,6 @@ Passenger-docker consists of several images, each one tailor made for a specific
129129

130130
**Ruby images**
131131

132-
* `phusion/passenger-ruby30` - Ruby 3.0.
133132
* `phusion/passenger-ruby31` - Ruby 3.1.
134133
* `phusion/passenger-ruby32` - Ruby 3.2.
135134
* `phusion/passenger-ruby33` - Ruby 3.3.
@@ -181,7 +180,6 @@ So put the following in your Dockerfile:
181180
# a list of version numbers.
182181
FROM phusion/passenger-full:<VERSION>
183182
# Or, instead of the 'full' variant, use one of these:
184-
#FROM phusion/passenger-ruby30:<VERSION>
185183
#FROM phusion/passenger-ruby31:<VERSION>
186184
#FROM phusion/passenger-ruby32:<VERSION>
187185
#FROM phusion/passenger-ruby33:<VERSION>
@@ -214,7 +212,6 @@ CMD ["/sbin/my_init"]
214212
#RUN /pd_build/nodejs.sh 18
215213
#
216214
# Ruby support
217-
#RUN /pd_build/ruby-3.0.*.sh
218215
#RUN /pd_build/ruby-3.1.*.sh
219216
#RUN /pd_build/ruby-3.2.*.sh
220217
#RUN /pd_build/ruby-3.3.*.sh
@@ -280,8 +277,6 @@ server {
280277
passenger_ruby /usr/bin/ruby3.2;
281278
# For Ruby 3.1
282279
passenger_ruby /usr/bin/ruby3.1;
283-
# For Ruby 3.0
284-
passenger_ruby /usr/bin/ruby3.0;
285280
286281
# For Python ie. Django
287282
passenger_app_type wsgi;
@@ -452,8 +447,6 @@ We use [RVM](https://rvm.io/) to install and to manage Ruby interpreters. Becaus
452447
The default Ruby (what the `/usr/bin/ruby` command executes) is the latest Ruby version that you've chosen to install. You can use RVM select a different version as default.
453448

454449
```dockerfile
455-
# Ruby 3.0.7
456-
RUN bash -lc 'rvm --default use ruby-3.0.7'
457450
# Ruby 3.1.5
458451
RUN bash -lc 'rvm --default use ruby-3.1.5'
459452
# Ruby 3.2.4
@@ -843,7 +836,6 @@ Start a virtual machine with Docker in it. You can use the Vagrantfile that we'v
843836

844837
Build one of the images:
845838

846-
make build_ruby30
847839
make build_ruby31
848840
make build_ruby32
849841
make build_ruby33

image/install_image.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ source /pd_build/buildconfig
55
# base cleans up apt before here now
66
run apt-get update
77

8-
if [[ "$ruby30" = 1 ]]; then run /pd_build/ruby-3.0.*.sh; fi
98
if [[ "$ruby31" = 1 ]]; then run /pd_build/ruby-3.1.*.sh; fi
109
if [[ "$ruby32" = 1 ]]; then run /pd_build/ruby-3.2.*.sh; fi
1110
if [[ "$ruby33" = 1 ]]; then run /pd_build/ruby-3.3.*.sh; fi
11+
if [[ "$ruby34" = 1 ]]; then run /pd_build/ruby-3.4.*.sh; fi
1212
if [[ "$jruby93" = 1 ]]; then run /pd_build/jruby-9.3.*.sh; fi
1313
if [[ "$jruby94" = 1 ]]; then run /pd_build/jruby-9.4.*.sh; fi
14+
if [[ "$jruby95" = 1 ]]; then run /pd_build/jruby-9.5.*.sh; fi
1415
if [[ "$nodejs" = 1 ]]; then run /pd_build/nodejs.sh; fi
1516
if [[ "$redis" = 1 ]]; then run /pd_build/redis.sh; fi
1617
if [[ "$memcached" = 1 ]]; then run /pd_build/memcached.sh; fi
@@ -19,6 +20,7 @@ if [[ "$python39" = 1 ]]; then run /pd_build/python.sh 3.9; fi
1920
if [[ "$python310" = 1 ]]; then run /pd_build/python.sh 3.10; fi
2021
if [[ "$python311" = 1 ]]; then run /pd_build/python.sh 3.11; fi
2122
if [[ "$python312" = 1 ]]; then run /pd_build/python.sh 3.12; fi
23+
if [[ "$python313" = 1 ]]; then run /pd_build/python.sh 3.13; fi
2224

2325
# Must be installed after Ruby, so that we don't end up with two Ruby versions.
2426
run /pd_build/nginx-passenger.sh

image/nginx-passenger.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ run sed -i -e '/sv 1 nginx.*/a\' -e ' passenger-config reopen-logs >/dev/null 2
5959
run rm -f /var/log/nginx/error.log
6060

6161
## Precompile Ruby extensions.
62+
if [[ -e /usr/bin/ruby3.4 ]]; then
63+
run ruby3.4 -S passenger-config build-native-support
64+
run setuser app ruby3.4 -S passenger-config build-native-support
65+
fi
6266
if [[ -e /usr/bin/ruby3.3 ]]; then
6367
run ruby3.3 -S passenger-config build-native-support
6468
run setuser app ruby3.3 -S passenger-config build-native-support
@@ -71,9 +75,9 @@ if [[ -e /usr/bin/ruby3.1 ]]; then
7175
run ruby3.1 -S passenger-config build-native-support
7276
run setuser app ruby3.1 -S passenger-config build-native-support
7377
fi
74-
if [[ -e /usr/bin/ruby3.0 ]]; then
75-
run ruby3.0 -S passenger-config build-native-support
76-
run setuser app ruby3.0 -S passenger-config build-native-support
78+
if [[ -e /usr/bin/jruby9.5 ]]; then
79+
run jruby9.5 --dev -S passenger-config build-native-support
80+
run setuser app jruby9.5 -S passenger-config build-native-support
7781
fi
7882
if [[ -e /usr/bin/jruby9.4 ]]; then
7983
run jruby9.4 --dev -S passenger-config build-native-support

image/ruby-3.0.7.sh

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)