Skip to content

Commit 4d9f5c8

Browse files
committed
add debian trixie
1 parent 6ceafd9 commit 4d9f5c8

File tree

8 files changed

+25
-13
lines changed

8 files changed

+25
-13
lines changed

debian_specs/passenger/helpers.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM debian:10
1+
FROM debian:13
22
ADD . /paa_build
33
RUN bash /paa_build/install.sh
File renamed without changes.

docker-images/testbox-debian-10/install.sh renamed to docker-images/testbox-debian-13/install.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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

2829
function create_group()
@@ -39,17 +40,20 @@ export LC_ALL=C.UTF-8
3940
export DEBIAN_FRONTEND=noninteractive
4041
export HOME=/root
4142

42-
header "Creating users and directories"
43-
run create_user app "Passenger APT Automation" 2446
44-
4543
header "Installing dependencies"
4644
run apt-get update -q
4745
run apt-get install -y -q apt-utils
4846
run 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
5251
run 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"
5357
run gem install bundler -v '~>1.0' --no-document
5458
run env BUNDLE_GEMFILE=/paa_build/Gemfile bundle install
5559

internal/lib/distro_info.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
require 'csv'
44
require 'nokogiri'
55

6+
# After editing this file regenerate distro_info.sh by running:
7+
# internal/scripts/regen_distro_info_script.sh
8+
69
def 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 ######

internal/lib/distro_info.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
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"
1313
UBUNTU_DISTROS="20.04 22.04 24.04 25.04"
1414

1515

@@ -46,7 +46,7 @@ function to_distro_codename()
4646

4747
function 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

5252
function to_testbox_image()

internal/lib/docker_image_info.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fi
1818
if [[ "$1" == "buildbox_name" ]]; then
1919
echo -n "phusion/passenger_apt_automation_buildbox"
2020
elif [[ "$1" == "buildbox_version" ]]; then
21-
echo -n "2.2.2"
21+
echo -n "2.2.3"
2222
elif [[ "$1" == "testbox_base_name" ]]; then
2323
echo -n "phusion/passenger_apt_automation_testbox"
2424
elif [[ "$1" == "testbox_version" ]]; then

0 commit comments

Comments
 (0)