Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Ruby 3.1.6 and remove Ruby 3.0 #404

Merged
merged 2 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
- ruby33 # EOL: 2027-03-31
- ruby32 # EOL: 2026-03-31
- ruby31 # EOL: 2025-03-31
- ruby30 # EOL: 2024-03-31
# https://www.ruby-lang.org/en/downloads/branches/
- python312 # EOL: 2028-10-02
- python311 # EOL: 2027-10-24
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## not released
* Removed Ruby 3.0 (EOL: 2024-03-31)
* Upgraded to Ruby 3.1.6

## 3.0.5 (release date: 2024-05-18)
* Upgraded to Phusion Passenger 6.0.22 (from 6.0.21).

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ FORCE:

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

Expand Down
24 changes: 8 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Basics (learn more at [baseimage-docker](http://phusion.github.io/baseimage-dock

Language support:

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

**Ruby images**

* `phusion/passenger-ruby30` - Ruby 3.0.
* `phusion/passenger-ruby31` - Ruby 3.1.
* `phusion/passenger-ruby32` - Ruby 3.2.
* `phusion/passenger-ruby33` - Ruby 3.3.
Expand Down Expand Up @@ -181,7 +180,6 @@ So put the following in your Dockerfile:
# a list of version numbers.
FROM phusion/passenger-full:<VERSION>
# Or, instead of the 'full' variant, use one of these:
#FROM phusion/passenger-ruby30:<VERSION>
#FROM phusion/passenger-ruby31:<VERSION>
#FROM phusion/passenger-ruby32:<VERSION>
#FROM phusion/passenger-ruby33:<VERSION>
Expand Down Expand Up @@ -214,7 +212,6 @@ CMD ["/sbin/my_init"]
#RUN /pd_build/nodejs.sh 18
#
# Ruby support
#RUN /pd_build/ruby-3.0.*.sh
#RUN /pd_build/ruby-3.1.*.sh
#RUN /pd_build/ruby-3.2.*.sh
#RUN /pd_build/ruby-3.3.*.sh
Expand Down Expand Up @@ -280,8 +277,6 @@ server {
passenger_ruby /usr/bin/ruby3.2;
# For Ruby 3.1
passenger_ruby /usr/bin/ruby3.1;
# For Ruby 3.0
passenger_ruby /usr/bin/ruby3.0;

# For Python ie. Django
passenger_app_type wsgi;
Expand Down Expand Up @@ -452,10 +447,8 @@ We use [RVM](https://rvm.io/) to install and to manage Ruby interpreters. Becaus
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.

```dockerfile
# Ruby 3.0.7
RUN bash -lc 'rvm --default use ruby-3.0.7'
# Ruby 3.1.5
RUN bash -lc 'rvm --default use ruby-3.1.5'
# Ruby 3.1.6
RUN bash -lc 'rvm --default use ruby-3.1.6'
# Ruby 3.2.4
RUN bash -lc 'rvm --default use ruby-3.2.4'
# Ruby 3.3.1
Expand All @@ -474,16 +467,16 @@ Learn more: [RVM: Setting the default Ruby](https://rvm.io/rubies/default).
You can run any command with a specific Ruby version by prefixing it with `rvm-exec <IDENTIFIER>`. For example:

```bash
$ rvm-exec 3.1.5 ruby -v
Using /usr/local/rvm/gems/ruby-3.1.5
ruby 3.1.5p252 (2024-04-23 revision 1945f8dc0e) [x86_64-linux]
$ rvm-exec 3.1.6 ruby -v
Using /usr/local/rvm/gems/ruby-3.1.6
ruby 3.1.6p260 (2024-05-29 revision a777087be6) [x86_64-linux]
```

More examples, but with Bundler instead:

```bash
# This runs 'bundle install' using Ruby 3.1.5
rvm-exec 3.1.5 bundle install
# This runs 'bundle install' using Ruby 3.1.6
rvm-exec 3.1.6 bundle install
```

<a name="default_ruby_wrapper_scripts"></a>
Expand Down Expand Up @@ -843,7 +836,6 @@ Start a virtual machine with Docker in it. You can use the Vagrantfile that we'v

Build one of the images:

make build_ruby30
make build_ruby31
make build_ruby32
make build_ruby33
Expand Down
1 change: 0 additions & 1 deletion image/install_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ source /pd_build/buildconfig
# base cleans up apt before here now
run apt-get update

if [[ "$ruby30" = 1 ]]; then run /pd_build/ruby-3.0.*.sh; fi
if [[ "$ruby31" = 1 ]]; then run /pd_build/ruby-3.1.*.sh; fi
if [[ "$ruby32" = 1 ]]; then run /pd_build/ruby-3.2.*.sh; fi
if [[ "$ruby33" = 1 ]]; then run /pd_build/ruby-3.3.*.sh; fi
Expand Down
17 changes: 0 additions & 17 deletions image/install_openssl1.1.sh

This file was deleted.

4 changes: 0 additions & 4 deletions image/nginx-passenger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ if [[ -e /usr/bin/ruby3.1 ]]; then
run ruby3.1 -S passenger-config build-native-support
run setuser app ruby3.1 -S passenger-config build-native-support
fi
if [[ -e /usr/bin/ruby3.0 ]]; then
run ruby3.0 -S passenger-config build-native-support
run setuser app ruby3.0 -S passenger-config build-native-support
fi
if [[ -e /usr/bin/jruby9.4 ]]; then
run jruby9.4 --dev -S passenger-config build-native-support
run setuser app jruby9.4 -S passenger-config build-native-support
Expand Down
39 changes: 0 additions & 39 deletions image/ruby-3.0.7.sh

This file was deleted.

File renamed without changes.
2 changes: 0 additions & 2 deletions image/ruby_support/finalize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ elif [[ "$known_rubies" =~ ruby-3\.2 ]]; then
set_rvm_default ruby-3\.2
elif [[ "$known_rubies" =~ ruby-3\.1 ]]; then
set_rvm_default ruby-3\.1
elif [[ "$known_rubies" =~ ruby-3\.0 ]]; then
set_rvm_default ruby-3\.0
elif [[ "$known_rubies" =~ jruby ]]; then
set_rvm_default jruby
fi
Expand Down
Loading