Compare commits

..

No commits in common. "c30776fa2a4f5ef417fa2a61e56fc20ca79927ee" and "913ca8fa726cd90f49b1e3d09e0104b6450a5f97" have entirely different histories.

6 changed files with 9 additions and 24 deletions

View file

@ -1,10 +1,9 @@
ENV PYTHON_APT_PACKAGES="python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git python3-setuptools" ENV PYTHON_APT_PACKAGES="python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git"
ENV DEB_APT_PACKAGES="apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python equivs" 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 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 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 flake8-codeclimate" ENV PIP_PACKAGES="stdeb poetry2setup wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser pylint-gitlab flake8-codeclimate"
ENV PIP_NEW_PACKAGES="pylint-gitlab"
RUN echo "deb http://debian.zionetrix.net stable main" > /etc/apt/sources.list.d/zionetrix.list && \ 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 && \ 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 INCLUDE+ Dockerfile.common
RUN python3 -m pip install -U pip && \ RUN python3 -m pip install -U pip && \
python3 -m pip install $PIP_PACKAGES $PIP_NEW_PACKAGES python3 -m pip install $PIP_PACKAGES

View file

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

View file

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

View file

@ -1,14 +0,0 @@
# 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 : 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 python3-setuptools` - 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`. Note: `pylint-gitlab` not available on Debian 9. - common PIP installed python packages: `stdeb poetry2setup wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser pylint-gitlab flake8-codeclimate`
- common Debian packages building tools: `apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python equivs` - 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` - common tools: `sed lsb-release gnupg2 curl jq git rsync wget ca-certificates`
- [gitdch](https://gitea.zionetrix.net/bn8/gitdch) tool - [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 DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1 export COMPOSE_DOCKER_CLI_BUILD=1
for deb_version in 9 10 11 12 for deb_version in 10 11 12
do do
docker build -t docker.io/brenard/debian-python-deb:debian${deb_version} -f Dockerfile.debian${deb_version} . docker build -t docker.io/brenard/debian-python-deb:debian${deb_version} -f Dockerfile.debian${deb_version} .
done done
@ -31,7 +31,7 @@ docker build -t docker.io/brenard/debian-python-deb:latest -f Dockerfile.debian$
## Publish ## Publish
```bash ```bash
for deb_version in 9 10 11 12 for deb_version in 10 11 12
do do
docker push docker.io/brenard/debian-python-deb:debian${deb_version} docker push docker.io/brenard/debian-python-deb:debian${deb_version}
done done