Skip to content

Commit

Permalink
Merge branch 'master' into amazon-linux-2023
Browse files Browse the repository at this point in the history
  • Loading branch information
unixmonkey authored Aug 26, 2024
2 parents 7bc52b8 + bd58cd9 commit ecb388d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .docker/Dockerfile-ubuntu_24.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ubuntu:24.04

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update
RUN apt-get install -y ruby libjpeg8 libxrender1 libfontconfig1

CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version
7 changes: 5 additions & 2 deletions bin/wkhtmltopdf
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ suffix = case RbConfig::CONFIG['host_os']

os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') ||
os.start_with?('linuxmint_20.')

os = 'ubuntu_21.10' if os.start_with?('ubuntu_21.') ||
os.start_with?('linuxmint_21.')

os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.') ||
os.start_with?('tuxedo_22.')
os.start_with?('ubuntu_24.') ||
os.start_with?('tuxedo_22.') ||
os.start_with?('linuxmint_22')

os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2' && os != 'amzn_2023') ||
(os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))
Expand All @@ -54,6 +56,7 @@ suffix = case RbConfig::CONFIG['host_os']
os = 'centos_8' if os.start_with?('rocky_8') ||
os.start_with?('rhel_8.') ||
os.start_with?('ol_8.') ||
os.start_with?('alinux_') ||
os == 'amzn_2023'

os_based_on_debian_9 = os.start_with?('debian_9') ||
Expand Down
4 changes: 4 additions & 0 deletions test/test_with_docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ def test_with_ubuntu_22
test_on_x86 with: 'ubuntu_22.04'
end

def test_with_ubuntu_24
test_on_x86 with: 'ubuntu_24.04'
end

def test_with_archlinux
test_on_x86 with: 'archlinux'
end
Expand Down

0 comments on commit ecb388d

Please sign in to comment.