Skip to content

Added CentOS Stream 10 #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 \
55 changes: 55 additions & 0 deletions centos-stream-10-amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions centos-stream-10-amd64/Makefile
6 changes: 6 additions & 0 deletions centos-stream-10-amd64/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
source /vpy3/bin/activate
cd /Pillow
make clean
make install-coverage
.ci/test.sh
2 changes: 2 additions & 0 deletions centos-stream-10-amd64/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
docker pull quay.io/centos/centos:stream10