Skip to content

Commit

Permalink
Merge pull request #159 from taoxuau/add-almalinux-support
Browse files Browse the repository at this point in the history
Add support for AlmaLinux 8
  • Loading branch information
unixmonkey authored Aug 26, 2024
2 parents 6bc9221 + 75b78d0 commit 66d12bd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .docker/Dockerfile-almalinux_8
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions bin/wkhtmltopdf
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: .
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 @@ -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
Expand Down

0 comments on commit 66d12bd

Please sign in to comment.