diff --git a/.docker/Dockerfile-oraclelinux_8 b/.docker/Dockerfile-oraclelinux_8 new file mode 100644 index 00000000..6e976ed9 --- /dev/null +++ b/.docker/Dockerfile-oraclelinux_8 @@ -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 diff --git a/bin/wkhtmltopdf b/bin/wkhtmltopdf index 747d8eb3..de4ccbc1 100755 --- a/bin/wkhtmltopdf +++ b/bin/wkhtmltopdf @@ -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') diff --git a/docker-compose.yml b/docker-compose.yml index 1fc8067b..47e99ee5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: .