Skip to content

Commit

Permalink
Add support for Oracle Linux 8x
Browse files Browse the repository at this point in the history
  • Loading branch information
crowesn committed Feb 7, 2023
1 parent f7928e1 commit b55b498
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .docker/Dockerfile-oraclelinux_8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM oraclelinux:8

RUN yum install -y ruby libjpeg-turbo libpng libXrender fontconfig libXext

CMD /root/wkhtmltopdf_binary_gem/bin/wkhtmltopdf --version
4 changes: 3 additions & 1 deletion bin/wkhtmltopdf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ suffix = case RbConfig::CONFIG['host_os']
os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
os.start_with?('rhel_7.')

os = 'centos_8' if os.start_with?('rocky_8') || os.start_with?('rhel_8.')
os = 'centos_8' if os.start_with?('rocky_8') ||
os.start_with?('rhel_8.') ||
os.start_with?('ol_8.')

os_based_on_debian_9 = os.start_with?('debian_9') ||
os.start_with?('deepin')
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ services:
dockerfile: .docker/Dockerfile-centos_8
volumes:
- .:/root/wkhtmltopdf_binary_gem

oraclelinux_8:
build:
context: .
dockerfile: .docker/Dockerfile-oraclelinux_8
volumes:
- .:/root/wkhtmltopdf_binary_gem

rockylinux_8:
build:
context: .
Expand Down

0 comments on commit b55b498

Please sign in to comment.