-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from hugovk/add-debian-12-bookworm
Add Debian 12 Bookworm
- Loading branch information
Showing
8 changed files
with
810 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Originally from https://github.com/M0E-lnx/ubuntu-32bit with thanks, | ||
# and then https://github.com/matthew-brett/trusty/blob/32/Dockerfile | ||
|
||
FROM scratch | ||
ADD debian-bookworm-i386.tgz / | ||
|
||
# a few minor docker-specific tweaks | ||
# see https://github.com/docker/docker/blob/master/contrib/mkimage/debootstrap | ||
RUN echo '#!/bin/sh' > /usr/sbin/policy-rc.d \ | ||
&& echo 'exit 101' >> /usr/sbin/policy-rc.d \ | ||
&& chmod +x /usr/sbin/policy-rc.d \ | ||
\ | ||
&& dpkg-divert --local --rename --add /sbin/initctl \ | ||
&& cp -a /usr/sbin/policy-rc.d /sbin/initctl \ | ||
&& sed -i 's/^exit.*/exit 0/' /sbin/initctl \ | ||
\ | ||
&& echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup \ | ||
\ | ||
&& echo 'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' > /etc/apt/apt.conf.d/docker-clean \ | ||
&& echo 'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' >> /etc/apt/apt.conf.d/docker-clean \ | ||
&& echo 'Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";' >> /etc/apt/apt.conf.d/docker-clean \ | ||
\ | ||
&& echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/docker-no-languages \ | ||
\ | ||
&& echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/docker-gzip-indexes | ||
|
||
# && echo 'deb http://archive.ubuntu.com/ubuntu/ trusty universe' >> /etc/apt/sources.list \ | ||
# && echo 'deb http://archive.ubuntu.com/ubuntu/ trusty-updates universe' >> /etc/apt/sources.list | ||
|
||
# | ||
# Pillow customization | ||
# | ||
|
||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
cmake \ | ||
curl \ | ||
ghostscript \ | ||
git \ | ||
libffi-dev \ | ||
libfreetype6-dev \ | ||
libfribidi-dev \ | ||
libharfbuzz-dev \ | ||
libjpeg-turbo-progs \ | ||
libjpeg62-turbo-dev \ | ||
liblcms2-dev \ | ||
libopenjp2-7-dev \ | ||
libtiff5-dev \ | ||
libwebp-dev \ | ||
libssl-dev \ | ||
meson \ | ||
netpbm \ | ||
python3-dev \ | ||
python3-numpy \ | ||
python3-setuptools \ | ||
python3-tk \ | ||
sudo \ | ||
tcl8.6-dev \ | ||
tk8.6-dev \ | ||
virtualenv \ | ||
wget \ | ||
xvfb \ | ||
zlib1g-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-host=i686-unknown-linux-gnu | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
RUN useradd pillow \ | ||
&& mkdir /home/pillow \ | ||
&& chown pillow:pillow /home/pillow | ||
|
||
RUN virtualenv -p /usr/bin/python3.11 --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 \ | ||
&& chown -R pillow:pillow /vpy3 | ||
|
||
ADD depends /depends | ||
RUN cd /depends && ./install_imagequant.sh && ./install_raqm.sh | ||
|
||
USER pillow | ||
ENTRYPOINT ["linux32"] | ||
CMD ["depends/test.sh"] | ||
|
||
#docker run -v $GITHUB_WORKSPACE:/Pillow pythonpillow/debian-12-bookworm-x86 |
Oops, something went wrong.