Skip to content

Commit 6756180

Browse files
authored
Merge pull request #227 from radarhere/centos
Added CentOS Stream 10
2 parents 8bc6876 + 429fa32 commit 6756180

File tree

6 files changed

+66
-0
lines changed

6 files changed

+66
-0
lines changed

Diff for: .github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- "amazon-2023-amd64"
2828
- "arch"
2929
- "centos-stream-9-amd64"
30+
- "centos-stream-10-amd64"
3031
- "debian-12-bookworm-x86"
3132
- "debian-12-bookworm-amd64"
3233
- "fedora-40-amd64"

Diff for: Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ TARGETS = \
44
amazon-2023-amd64 \
55
arch \
66
centos-stream-9-amd64 \
7+
centos-stream-10-amd64 \
78
debian-12-bookworm-x86 \
89
debian-12-bookworm-amd64 \
910
fedora-40-amd64 \

Diff for: centos-stream-10-amd64/Dockerfile

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM quay.io/centos/centos:stream10
2+
3+
RUN yum install -y 'dnf-command(config-manager)' \
4+
&& yum clean all
5+
6+
RUN yum config-manager --set-enabled crb
7+
8+
RUN yum install -y \
9+
cargo \
10+
cmake \
11+
freetype-devel \
12+
gcc \
13+
ghostscript \
14+
git \
15+
lcms2-devel \
16+
libjpeg-devel \
17+
libtiff-devel \
18+
libwebp-devel \
19+
make \
20+
meson \
21+
openjpeg2-devel \
22+
openssl-devel \
23+
python3-devel \
24+
python3-pip \
25+
python3-tkinter \
26+
sudo \
27+
tcl-devel \
28+
tk-devel \
29+
wget \
30+
which \
31+
zlib-devel \
32+
&& yum clean all
33+
34+
RUN useradd --uid 1001 pillow
35+
36+
ARG PIP_DISABLE_PIP_VERSION_CHECK=1
37+
ARG PIP_NO_CACHE_DIR=1
38+
39+
RUN bash -c "python3.12 -m pip install virtualenv \
40+
&& python3.12 -m virtualenv --system-site-packages /vpy3 \
41+
&& /vpy3/bin/pip install --upgrade pip \
42+
&& /vpy3/bin/pip install olefile pytest pytest-cov pytest-timeout \
43+
&& /vpy3/bin/pip install numpy --only-binary=:all: || true \
44+
&& chown -R pillow:pillow /vpy3"
45+
46+
COPY depends /depends
47+
RUN cd /depends \
48+
&& ./install_imagequant.sh \
49+
&& ./install_raqm.sh \
50+
&& ldconfig
51+
52+
USER pillow
53+
CMD ["depends/test.sh"]
54+
55+
#docker run -v $GITHUB_WORKSPACE:/Pillow pythonpillow/centos-stream-10-amd64

Diff for: centos-stream-10-amd64/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Makefile.sub

Diff for: centos-stream-10-amd64/test.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
source /vpy3/bin/activate
3+
cd /Pillow
4+
make clean
5+
make install-coverage
6+
.ci/test.sh

Diff for: centos-stream-10-amd64/update.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
docker pull quay.io/centos/centos:stream10

0 commit comments

Comments
 (0)