diff --git a/.docker/Dockerfile-almalinux_8 b/.docker/Dockerfile-almalinux_8 new file mode 100644 index 0000000..39ff722 --- /dev/null +++ b/.docker/Dockerfile-almalinux_8 @@ -0,0 +1,5 @@ +FROM almalinux/almalinux:8 + +RUN yum install -y ruby libjpeg-turbo libpng libXrender fontconfig libXext + +CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version diff --git a/bin/wkhtmltopdf b/bin/wkhtmltopdf index 55e90c1..580b195 100755 --- a/bin/wkhtmltopdf +++ b/bin/wkhtmltopdf @@ -56,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?('almalinux_8') || os.start_with?('alinux_') || os == 'amzn_2023' diff --git a/docker-compose.yml b/docker-compose.yml index 47e99ee..1d00e48 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -93,6 +93,13 @@ services: volumes: - .:/root/wkhtmltopdf_binary_gem + almalinux_8: + build: + context: . + dockerfile: .docker/Dockerfile-almalinux_8 + volumes: + - .:/root/wkhtmltopdf_binary_gem + archlinux: build: context: . diff --git a/test/test_with_docker.rb b/test/test_with_docker.rb index 450a778..d15de6c 100644 --- a/test/test_with_docker.rb +++ b/test/test_with_docker.rb @@ -69,6 +69,10 @@ def test_rockylinux_8 test_on_x86 with: 'rockylinux_8' end + def test_almalinux_8 + test_on_x86 with: 'almalinux_8' + end + def test_with_macos assert_equal('wkhtmltopdf 0.12.6 (with patched qt)', `bin/wkhtmltopdf --version`.strip) if macos? end