Skip to content

Commit 361361b

Browse files
committed
Add support for Ubuntu 26.04
1 parent f54fc99 commit 361361b

4 files changed

Lines changed: 27 additions & 0 deletions

File tree

.docker/Dockerfile-ubuntu_26.04

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM ubuntu:26.04
2+
3+
ENV DEBIAN_FRONTEND noninteractive
4+
5+
RUN apt-get update
6+
RUN apt-get install -y ruby libjpeg8 libxrender1 libfontconfig1
7+
8+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

bin/wkhtmltopdf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ suffix = case RbConfig::CONFIG['host_os']
4444

4545
os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.') ||
4646
os.start_with?('ubuntu_24.') ||
47+
os.start_with?('ubuntu_26.') ||
4748
os.start_with?('tuxedo_22.') ||
4849
os.start_with?('neon_24.') ||
4950
os.start_with?('neon_22.') ||

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ services:
2929
volumes:
3030
- .:/root/wkhtmltopdf_binary_gem
3131

32+
ubuntu_24.04:
33+
build:
34+
context: .
35+
dockerfile: .docker/Dockerfile-ubuntu_24.04
36+
volumes:
37+
- .:/root/wkhtmltopdf_binary_gem
38+
39+
ubuntu_26.04:
40+
build:
41+
context: .
42+
dockerfile: .docker/Dockerfile-ubuntu_26.04
43+
volumes:
44+
- .:/root/wkhtmltopdf_binary_gem
45+
3246
debian_9:
3347
build:
3448
context: .

test/test_with_docker.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ def test_with_ubuntu_24
6565
test_on_x86_and_arm with: 'ubuntu_24.04'
6666
end
6767

68+
def test_with_ubuntu_26
69+
test_on_x86_and_arm with: 'ubuntu_26.04'
70+
end
71+
6872
def test_with_archlinux
6973
test_on_x86 with: 'archlinux'
7074
end

0 commit comments

Comments
 (0)