Skip to content

Commit

Permalink
bump version & add ruby 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Dec 27, 2023
1 parent 1e9d3a2 commit e5a815c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ REGISTRY = docker.io
endif

NAME ?= $(REGISTRY)/phusion/passenger
VERSION ?= 2.6.1
VERSION ?= 2.6.2

# NAME and/or VERSION can be overriden during build if you are building locally to push to your own repository
# example:
Expand Down Expand Up @@ -35,7 +35,7 @@ endif
FORCE:

SPECIAL_IMAGES := customizable full
SINGLE_VERSION_IMAGES := jruby93 jruby94 nodejs ruby30 ruby31 ruby32
SINGLE_VERSION_IMAGES := jruby93 jruby94 nodejs ruby30 ruby31 ruby32 ruby33

ALL_IMAGES := $(SPECIAL_IMAGES) $(SINGLE_VERSION_IMAGES)

Expand Down
1 change: 1 addition & 0 deletions image/install_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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
if [[ "$jruby93" = 1 ]]; then run /pd_build/jruby-9.3.*.sh; fi
if [[ "$jruby94" = 1 ]]; then run /pd_build/jruby-9.4.*.sh; fi
if [[ "$python" = 1 ]]; then run /pd_build/python.sh; fi
Expand Down
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions image/ruby-3.3.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
set -e
source /pd_build/buildconfig

RVM_ID=$(basename "$0" | sed 's/.sh$//')

header "Installing $RVM_ID"

run mkdir -p "/build_cache/${ARCH}"
if [[ -e "/build_cache/${ARCH}/${RVM_ID}.tar.bz2" ]]; then
# use cached ruby if present
run /usr/local/rvm/bin/rvm mount "/build_cache/${ARCH}/${RVM_ID}.tar.bz2"
else
# otherwise build one
run minimal_apt_get_install rustc # For compiling Ruby with YJIT
MAKEFLAGS=-j$(nproc) run /usr/local/rvm/bin/rvm install $RVM_ID --disable-cache || ( cat /usr/local/rvm/log/*${RVM_ID}*/*.log && false )
run cd "/build_cache/${ARCH}"
run /usr/local/rvm/bin/rvm prepare "${RVM_ID}"
run cd /
fi

run /usr/local/rvm/bin/rvm-exec $RVM_ID@global gem install $DEFAULT_RUBY_GEMS --no-document
# Make passenger_system_ruby work.
run create_rvm_wrapper_script ruby3.3 $RVM_ID ruby
run /pd_build/ruby_support/install_ruby_utils.sh
run /pd_build/ruby_support/finalize.sh

0 comments on commit e5a815c

Please sign in to comment.