Skip to content

Commit

Permalink
Merge pull request #155 from crowesn/153/oracle-linux-support
Browse files Browse the repository at this point in the history
Add support for Oracle Linux 8x
  • Loading branch information
unixmonkey committed May 9, 2024
2 parents 3231864 + 4fe101f commit dd07d7a
Show file tree
Hide file tree
Showing 3 changed files with 15 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 @@ -50,7 +50,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
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ services:
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 dd07d7a

Please sign in to comment.