Skip to content

Commit 66d12bd

Browse files
authored
Merge pull request #159 from taoxuau/add-almalinux-support
Add support for AlmaLinux 8
2 parents 6bc9221 + 75b78d0 commit 66d12bd

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.docker/Dockerfile-almalinux_8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM almalinux/almalinux:8
2+
3+
RUN yum install -y ruby libjpeg-turbo libpng libXrender fontconfig libXext
4+
5+
CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version

bin/wkhtmltopdf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ suffix = case RbConfig::CONFIG['host_os']
5656
os = 'centos_8' if os.start_with?('rocky_8') ||
5757
os.start_with?('rhel_8.') ||
5858
os.start_with?('ol_8.') ||
59+
os.start_with?('almalinux_8') ||
5960
os.start_with?('alinux_') ||
6061
os == 'amzn_2023'
6162

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ services:
9393
volumes:
9494
- .:/root/wkhtmltopdf_binary_gem
9595

96+
almalinux_8:
97+
build:
98+
context: .
99+
dockerfile: .docker/Dockerfile-almalinux_8
100+
volumes:
101+
- .:/root/wkhtmltopdf_binary_gem
102+
96103
archlinux:
97104
build:
98105
context: .

test/test_with_docker.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def test_rockylinux_8
6969
test_on_x86 with: 'rockylinux_8'
7070
end
7171

72+
def test_almalinux_8
73+
test_on_x86 with: 'almalinux_8'
74+
end
75+
7276
def test_with_macos
7377
assert_equal('wkhtmltopdf 0.12.6 (with patched qt)', `bin/wkhtmltopdf --version`.strip) if macos?
7478
end

0 commit comments

Comments
 (0)