Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AlmaLinux 8 #159

Merged
merged 5 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading