diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c41b949d..7dcbce7e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,7 @@ jobs: - "amazon-2023-amd64" - "arch" - "centos-stream-9-amd64" + - "centos-stream-10-amd64" - "debian-12-bookworm-x86" - "debian-12-bookworm-amd64" - "fedora-40-amd64" diff --git a/Makefile b/Makefile index 3c195c94..eefd06a4 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ TARGETS = \ amazon-2023-amd64 \ arch \ centos-stream-9-amd64 \ + centos-stream-10-amd64 \ debian-12-bookworm-x86 \ debian-12-bookworm-amd64 \ fedora-40-amd64 \ diff --git a/centos-stream-10-amd64/Dockerfile b/centos-stream-10-amd64/Dockerfile new file mode 100644 index 00000000..754441fc --- /dev/null +++ b/centos-stream-10-amd64/Dockerfile @@ -0,0 +1,55 @@ +FROM quay.io/centos/centos:stream10 + +RUN yum install -y 'dnf-command(config-manager)' \ + && yum clean all + +RUN yum config-manager --set-enabled crb + +RUN yum install -y \ + cargo \ + cmake \ + freetype-devel \ + gcc \ + ghostscript \ + git \ + lcms2-devel \ + libjpeg-devel \ + libtiff-devel \ + libwebp-devel \ + make \ + meson \ + openjpeg2-devel \ + openssl-devel \ + python3-devel \ + python3-pip \ + python3-tkinter \ + sudo \ + tcl-devel \ + tk-devel \ + wget \ + which \ + zlib-devel \ + && yum clean all + +RUN useradd --uid 1001 pillow + +ARG PIP_DISABLE_PIP_VERSION_CHECK=1 +ARG PIP_NO_CACHE_DIR=1 + +RUN bash -c "python3.12 -m pip install virtualenv \ + && python3.12 -m virtualenv --system-site-packages /vpy3 \ + && /vpy3/bin/pip install --upgrade pip \ + && /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout \ + && /vpy3/bin/pip install numpy --only-binary=:all: || true \ + && chown -R pillow:pillow /vpy3" + +COPY depends /depends +RUN cd /depends \ + && ./install_imagequant.sh \ + && ./install_raqm.sh \ + && ldconfig + +USER pillow +CMD ["depends/test.sh"] + +#docker run -v $GITHUB_WORKSPACE:/Pillow pythonpillow/centos-stream-10-amd64 diff --git a/centos-stream-10-amd64/Makefile b/centos-stream-10-amd64/Makefile new file mode 120000 index 00000000..5e7b0e26 --- /dev/null +++ b/centos-stream-10-amd64/Makefile @@ -0,0 +1 @@ +../Makefile.sub \ No newline at end of file diff --git a/centos-stream-10-amd64/test.sh b/centos-stream-10-amd64/test.sh new file mode 100755 index 00000000..cff92b18 --- /dev/null +++ b/centos-stream-10-amd64/test.sh @@ -0,0 +1,6 @@ +#!/bin/bash +source /vpy3/bin/activate +cd /Pillow +make clean +make install-coverage +.ci/test.sh diff --git a/centos-stream-10-amd64/update.sh b/centos-stream-10-amd64/update.sh new file mode 100755 index 00000000..464a9715 --- /dev/null +++ b/centos-stream-10-amd64/update.sh @@ -0,0 +1,2 @@ +#!/bin/sh +docker pull quay.io/centos/centos:stream10