File tree Expand file tree Collapse file tree 8 files changed +25
-13
lines changed
docker-images/testbox-debian-13 Expand file tree Collapse file tree 8 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,11 @@ def ruby_package_dependencies
3131 "ruby2.5, ruby2.5-dev"
3232 elsif is_distribution? ( "<= bullseye" )
3333 "ruby2.7, ruby2.7-dev"
34- else
35- # bookworm
34+ elsif is_distribution? ( "<= bookworm" )
3635 "ruby3.1, ruby3.1-dev"
36+ else
37+ # trixie
38+ "ruby3.3, ruby3.3-dev"
3739 end
3840 else
3941 raise "Unknown distribution class"
@@ -69,8 +71,10 @@ def distro_ruby_versions
6971 [ "2.5" ]
7072 elsif is_distribution? ( "<= bullseye" )
7173 [ "2.7" ]
72- else
74+ elsif is_distribution? ( "<= bookworm" )
7375 [ "3.1" ]
76+ else
77+ [ "3.3" ]
7478 end
7579 else
7680 raise "Unknown distribution class"
Original file line number Diff line number Diff line change 1- FROM debian:10
1+ FROM debian:13
22ADD . /paa_build
33RUN bash /paa_build/install.sh
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ function create_user()
2323 adduser --uid $id --gid $id --disabled-password --gecos " $full_name " $name
2424 fi
2525 usermod -L $name
26+ chmod o+rx /home/$name
2627}
2728
2829function create_group()
@@ -39,17 +40,20 @@ export LC_ALL=C.UTF-8
3940export DEBIAN_FRONTEND=noninteractive
4041export HOME=/root
4142
42- header " Creating users and directories"
43- run create_user app " Passenger APT Automation" 2446
44-
4543header " Installing dependencies"
4644run apt-get update -q
4745run apt-get install -y -q apt-utils
4846run apt-get install -y -q build-essential gdebi-core ruby ruby-dev rake \
49- libcurl4-openssl-dev zlib1g-dev libssl-dev wget curl python git \
47+ libcurl4-openssl-dev zlib1g-dev libssl-dev wget curl python3 git \
5048 ccache reprepro libsqlite3-dev apt-transport-https systemd \
51- ca-certificates ruby-nokogiri distro-info-data
49+ ca-certificates gnupg python-is-python3 ruby-nokogiri distro-info-data \
50+ adduser
5251run ln -s /usr/bin/python3 /bin/my_init_python
52+
53+ header " Creating users and directories"
54+ run create_user app " Passenger APT Automation" 2446
55+
56+ header " Installing Ruby deps"
5357run gem install bundler -v ' ~>1.0' --no-document
5458run env BUNDLE_GEMFILE=/paa_build/Gemfile bundle install
5559
Original file line number Diff line number Diff line change 33require 'csv'
44require 'nokogiri'
55
6+ # After editing this file regenerate distro_info.sh by running:
7+ # internal/scripts/regen_distro_info_script.sh
8+
69def gen_distros ( family )
710 throw "must be run from #{ family } " unless File . exist? ( "/usr/share/distro-info/#{ family } .csv" )
811 CSV . read ( "/usr/share/distro-info/#{ family } .csv" , headers : true ) . each_with_object ( Hash . new ) { |r , a |
@@ -24,6 +27,7 @@ def gen_distros(family)
2427
2528 bullseye
2629 bookworm
30+ trixie
2731)
2832
2933###### Helper methods ######
Original file line number Diff line number Diff line change 88# internal/scripts/regen_distro_info_script.sh
99
1010# shellcheck disable=SC2034
11- DEFAULT_DISTROS=" focal jammy noble plucky bullseye bookworm"
12- DEBIAN_DISTROS=" 11 12"
11+ DEFAULT_DISTROS=" focal jammy noble plucky bullseye bookworm trixie "
12+ DEBIAN_DISTROS=" 11 12 13 "
1313UBUNTU_DISTROS=" 20.04 22.04 24.04 25.04"
1414
1515
@@ -46,7 +46,7 @@ function to_distro_codename()
4646
4747function get_buildbox_image()
4848{
49- echo " phusion/passenger_apt_automation_buildbox:2.2.2 "
49+ echo " phusion/passenger_apt_automation_buildbox:2.2.3 "
5050}
5151
5252function to_testbox_image()
Original file line number Diff line number Diff line change 1818if [[ " $1 " == " buildbox_name" ]]; then
1919 echo -n " phusion/passenger_apt_automation_buildbox"
2020elif [[ " $1 " == " buildbox_version" ]]; then
21- echo -n " 2.2.2 "
21+ echo -n " 2.2.3 "
2222elif [[ " $1 " == " testbox_base_name" ]]; then
2323 echo -n " phusion/passenger_apt_automation_testbox"
2424elif [[ " $1 " == " testbox_version" ]]; then
You can’t perform that action at this time.
0 commit comments