Modified build.yml to add support for s390x architecture.
145
If you want to compile wkhtmltox on your s390x architecture machine, you can follow these steps:
Use git clone -b master <URL-TO-GIT> (or specify another branch you want) to clone packaging, wkhtmltopdf, and qt repositories separately, and then copy the files in the qt directory to the qt directory in the wkhtmltopdf directory.
Install the relevant software packages using apt according to the README.md file in the official packaging directory (if you don't need cross-compilation, virtualbox can be skipped, and python-yaml can be installed via pip).
Go to https://github.com/docker/buildx/releases, download the buildx package for s390x architecture, put it in ~/.docker/cli-plugins/docker-buildx, and give it execute permission.
Run docker run --privileged --rm tonistiigi/binfmt --install all to pull the required docker images, and then run docker pull ruby:2.7-slim-bullseye to pull the ruby docker image.
Go to the packaging directory, run docker buildx build --platform=linux/s390x -t wkhtmltopdf/fpm:1.10.2-20221124 -f docker/Dockerfile.fpm docker/ to compile the wkhtmltopdf/fpm:1.10.2-2022112 image for the s390x architecture. (If it fails, you can try running the following two statements before compiling the docker image again: export COMPOSE_DOCKER_CLI_BUILD=0 and export DOCKER_BUILDKIT=0)
Run ./build --no-qemu package-docker jammy-s390x <PATH-TO-WKHTMLTOPDF> to start compiling wkhtmltox, which takes about 40 minutes.
After the compilation is completed, you can find the compiled deb file in the /packaging/targets directory.
Modified build.yml to add support for s390x architecture.
145
If you want to compile wkhtmltox on your s390x architecture machine, you can follow these steps:
git clone -b master <URL-TO-GIT>
(or specify another branch you want) to clone packaging, wkhtmltopdf, and qt repositories separately, and then copy the files in the qt directory to the qt directory in the wkhtmltopdf directory.~/.docker/cli-plugins/docker-buildx
, and give it execute permission.docker run --privileged --rm tonistiigi/binfmt --install all
to pull the required docker images, and then rundocker pull ruby:2.7-slim-bullseye
to pull the ruby docker image.docker buildx build --platform=linux/s390x -t wkhtmltopdf/fpm:1.10.2-20221124 -f docker/Dockerfile.fpm docker/
to compile the wkhtmltopdf/fpm:1.10.2-2022112 image for the s390x architecture. (If it fails, you can try running the following two statements before compiling the docker image again:export COMPOSE_DOCKER_CLI_BUILD=0
andexport DOCKER_BUILDKIT=0
)./build --no-qemu package-docker jammy-s390x <PATH-TO-WKHTMLTOPDF>
to start compiling wkhtmltox, which takes about 40 minutes.