Skip to content

Commit

Permalink
Merge pull request #227 from radarhere/centos
Browse files Browse the repository at this point in the history
Added CentOS Stream 10
  • Loading branch information
hugovk authored Dec 31, 2024
2 parents 8bc6876 + 429fa32 commit 6756180
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
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

0 comments on commit 6756180

Please sign in to comment.