Compare commits

...

2 commits

Author SHA1 Message Date
Benjamin Renard
c30776fa2a
Add Debian9 image 2024-06-27 11:48:14 +02:00
Benjamin Renard
6e75b008e7
Add python3-setuptools package 2024-06-27 11:37:53 +02:00
6 changed files with 24 additions and 9 deletions

View file

@ -1,9 +1,10 @@
ENV PYTHON_APT_PACKAGES="python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git"
ENV PYTHON_APT_PACKAGES="python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git python3-setuptools"
ENV DEB_APT_PACKAGES="apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python equivs"
ENV TOOLS_APT_PACKAGES="sed lsb-release gnupg2 curl jq git rsync gitdch wget ca-certificates"
ENV APT_PACKAGES="$PYTHON_APT_PACKAGES $DEB_APT_PACKAGES $TOOLS_APT_PACKAGES"
ENV PIP_PACKAGES="stdeb poetry2setup wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser pylint-gitlab flake8-codeclimate"
ENV PIP_PACKAGES="stdeb poetry2setup wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser flake8-codeclimate"
ENV PIP_NEW_PACKAGES="pylint-gitlab"
RUN echo "deb http://debian.zionetrix.net stable main" > /etc/apt/sources.list.d/zionetrix.list && \
apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update && \

View file

@ -5,4 +5,4 @@ FROM node:16-buster-slim
INCLUDE+ Dockerfile.common
RUN python3 -m pip install -U pip && \
python3 -m pip install $PIP_PACKAGES
python3 -m pip install $PIP_PACKAGES $PIP_NEW_PACKAGES

View file

@ -4,4 +4,4 @@ FROM node:16-bullseye-slim
INCLUDE+ Dockerfile.common
RUN python3 -m pip install $PIP_PACKAGES
RUN python3 -m pip install $PIP_PACKAGES $PIP_NEW_PACKAGES

View file

@ -4,4 +4,4 @@ FROM node:16-bookworm-slim
INCLUDE+ Dockerfile.common
RUN python3 -m pip install --break-system-packages $PIP_PACKAGES
RUN python3 -m pip install --break-system-packages $PIP_PACKAGES $PIP_NEW_PACKAGES

14
Dockerfile.debian9 Normal file
View file

@ -0,0 +1,14 @@
# syntax = edrevo/dockerfile-plus
FROM debian:9
RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list && \
echo "deb http://archive.debian.org/debian-security stretch/updates main" >> /etc/apt/sources.list
INCLUDE+ Dockerfile.common
RUN python3 -m pip install -U pip && \
python3 -m pip install $PIP_PACKAGES
RUN dpkg --purge gitdch && \
wget -O /usr/bin/gitdch https://gitea.zionetrix.net/bn8/gitdch/raw/tag/python35/gitdch && \
chmod 755 /usr/bin/gitdch

View file

@ -2,8 +2,8 @@
Image with common dependencies to build Debian package of Python apps/libraries :
- common Debian python packages: `python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git`
- common PIP installed python packages: `stdeb poetry2setup wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser pylint-gitlab flake8-codeclimate`
- common Debian python packages: `python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git python3-setuptools`
- common PIP installed python packages: `stdeb poetry2setup wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser pylint-gitlab flake8-codeclimate`. Note: `pylint-gitlab` not available on Debian 9.
- common Debian packages building tools: `apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python equivs`
- common tools: `sed lsb-release gnupg2 curl jq git rsync wget ca-certificates`
- [gitdch](https://gitea.zionetrix.net/bn8/gitdch) tool
@ -21,7 +21,7 @@ docker run -it -v "$(pwd)":/src -w /src docker.io/brenard/debian-python-deb
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
for deb_version in 10 11 12
for deb_version in 9 10 11 12
do
docker build -t docker.io/brenard/debian-python-deb:debian${deb_version} -f Dockerfile.debian${deb_version} .
done
@ -31,7 +31,7 @@ docker build -t docker.io/brenard/debian-python-deb:latest -f Dockerfile.debian$
## Publish
```bash
for deb_version in 10 11 12
for deb_version in 9 10 11 12
do
docker push docker.io/brenard/debian-python-deb:debian${deb_version}
done