Skip to content
Merged
Show file tree
Hide file tree
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
21 changes: 14 additions & 7 deletions centos-7-amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:7

RUN yum install -y epel-release centos-release-scl \
RUN yum install -y epel-release \
&& yum clean all

RUN yum install -y \
Expand All @@ -16,26 +16,33 @@ RUN yum install -y \
libwebp-devel \
make \
openjpeg2-devel \
rh-python36 \
rh-python36-python-virtualenv \
openssl-devel \
sqlite-devel \
sudo \
tcl-devel \
tk-devel \
tkinter \
wget \
which \
xorg-x11-server-Xvfb \
zlib-devel \
&& yum clean all

RUN useradd --uid 1000 pillow

RUN bash -c "source /opt/rh/rh-python36/enable \
&& /opt/rh/rh-python36/root/usr/bin/virtualenv -p python3.6 --system-site-packages /vpy3 \
RUN wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz \
&& tar xzf Python-3.9.7.tgz \
&& cd Python-3.9.7 \
&& ./configure \
&& make altinstall \
&& cd .. \
&& rm -r Python-3.9.7 Python-3.9.7.tgz

RUN bash -c "python3.9 -m pip install virtualenv \
&& python3.9 -m virtualenv --system-site-packages /vpy3 \
&& /vpy3/bin/pip install --no-cache-dir --upgrade pip \
&& /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
&& /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
&& cat /opt/rh/rh-python36/enable /vpy3/bin/activate > /vpy3/bin/activate3.6 \
&& mv /vpy3/bin/activate3.6 /vpy3/bin/activate \
&& chown -R pillow:pillow /vpy3"

ADD depends /depends
Expand Down
17 changes: 13 additions & 4 deletions centos-8-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,29 @@ RUN yum install -y \
libwebp-devel \
make \
openjpeg2-devel \
python3 \
python3-tkinter \
python3-virtualenv \
openssl-devel \
sqlite-devel \
sudo \
tcl-devel \
tk-devel \
wget \
which \
xorg-x11-server-Xvfb \
zlib-devel \
&& yum clean all

RUN useradd --uid 1000 pillow

RUN bash -c "/usr/bin/virtualenv -p python3.6 --system-site-packages /vpy3 \
RUN wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz \
&& tar xzf Python-3.9.7.tgz \
&& cd Python-3.9.7 \
&& ./configure \
&& make altinstall \
&& cd .. \
&& rm -r Python-3.9.7 Python-3.9.7.tgz

RUN bash -c "python3.9 -m pip install virtualenv \
&& python3.9 -m virtualenv --system-site-packages /vpy3 \
&& /vpy3/bin/pip install --no-cache-dir --upgrade pip \
&& /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
&& /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
Expand Down
17 changes: 13 additions & 4 deletions centos-stream-8-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,28 @@ RUN yum install -y \
libwebp-devel \
make \
openjpeg2-devel \
python3 \
python3-tkinter \
python3-virtualenv \
openssl-devel \
sqlite-devel \
tcl-devel \
tk-devel \
wget \
which \
xorg-x11-server-Xvfb \
zlib-devel \
&& yum clean all

RUN useradd --uid 1000 pillow

RUN bash -c "/usr/bin/virtualenv -p python3.6 --system-site-packages /vpy3 \
RUN wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz \
&& tar xzf Python-3.9.7.tgz \
&& cd Python-3.9.7 \
&& ./configure \
&& make altinstall \
&& cd .. \
&& rm -r Python-3.9.7 Python-3.9.7.tgz

RUN bash -c "python3.9 -m pip install virtualenv \
&& python3.9 -m virtualenv --system-site-packages /vpy3 \
&& /vpy3/bin/pip install --no-cache-dir --upgrade pip \
&& /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
&& /vpy3/bin/pip install --no-cache-dir numpy --only-binary=:all: || true \
Expand Down
21 changes: 13 additions & 8 deletions ubuntu-18.04-bionic-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@ RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
libjpeg8-dev \
liblcms2-dev \
libopenjp2-7-dev \
libssl-dev \
libsqlite3-dev \
libtiff5-dev \
libwebp-dev \
netpbm \
python3-dev \
python3-numpy \
python3-scipy \
python3-setuptools \
python3-tk \
sudo \
tcl8.6-dev \
tk8.6-dev \
virtualenv \
wget \
xvfb \
zlib1g-dev \
Expand All @@ -34,9 +30,18 @@ RUN useradd pillow \
&& mkdir /home/pillow \
&& chown pillow:pillow /home/pillow

RUN virtualenv -p /usr/bin/python3.6 --system-site-packages /vpy3 \
RUN wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz \
&& tar xzf Python-3.9.7.tgz \
&& cd Python-3.9.7 \
&& ./configure \
&& make altinstall \
&& cd .. \
&& rm -r Python-3.9.7 Python-3.9.7.tgz

RUN python3.9 -m pip install virtualenv \
&& python3.9 -m virtualenv --system-site-packages /vpy3 \
&& /vpy3/bin/pip install --no-cache-dir --upgrade pip \
&& /vpy3/bin/pip install --no-cache-dir cffi olefile pytest pytest-cov pytest-timeout \
&& /vpy3/bin/pip install --no-cache-dir cffi numpy olefile pytest pytest-cov pytest-timeout \
&& chown -R pillow:pillow /vpy3

ADD depends /depends
Expand Down