diff --git a/.docker/Dockerfile-oraclelinux_8 b/.docker/Dockerfile-oraclelinux_8 new file mode 100644 index 0000000..6e976ed --- /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 ddf6a07..7e565a2 100755 --- a/bin/wkhtmltopdf +++ b/bin/wkhtmltopdf @@ -37,11 +37,12 @@ suffix = case RbConfig::CONFIG['host_os'] os.start_with?('zorin') os = 'ubuntu_20.04' if os.start_with?('ubuntu_20.') || - os.start_with?('ubuntu_21.') || os.start_with?('linuxmint_20.') + + os = 'ubuntu_21.10' if os.start_with?('ubuntu_21.') || + os.start_with?('linuxmint_21.') os = 'ubuntu_22.04' if os.start_with?('ubuntu_22.') || - os.start_with?('linuxmint_21.') || os.start_with?('tuxedo_22.') os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') || @@ -50,7 +51,10 @@ 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?('almalinux_8') || 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.start_with?('almalinux_8') os_based_on_debian_9 = os.start_with?('debian_9') || os.start_with?('deepin') diff --git a/bin/wkhtmltopdf_ubuntu_21.10_amd64.gz b/bin/wkhtmltopdf_ubuntu_21.10_amd64.gz new file mode 100644 index 0000000..1889a41 Binary files /dev/null and b/bin/wkhtmltopdf_ubuntu_21.10_amd64.gz differ diff --git a/docker-compose.yml b/docker-compose.yml index ae5031a..1d00e48 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: . diff --git a/wkhtmltopdf-binary.gemspec b/wkhtmltopdf-binary.gemspec index ba25552..b1c7484 100644 --- a/wkhtmltopdf-binary.gemspec +++ b/wkhtmltopdf-binary.gemspec @@ -11,6 +11,10 @@ Gem::Specification.new do |s| s.files = Dir['bin/*'] s.executables << "wkhtmltopdf" s.require_path = '.' + s.homepage = 'https://github.com/zakird/wkhtmltopdf_binary_gem' + + spec.metadata['source_code_uri'] = spec.homepage + spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md" s.add_development_dependency "minitest" s.add_development_dependency "rake"