Compare commits

..

3 commits

Author SHA1 Message Date
Benjamin Renard
b7f46c38ac
Explicity named builded image as from docker.io 2023-08-08 14:48:23 +02:00
Benjamin Renard
8493b606ab
Add python3-appdirs, stdeb and poetry2setup 2023-08-08 14:47:31 +02:00
Benjamin Renard
8efb745777
Add debian10 tag 2023-08-08 14:35:56 +02:00
3 changed files with 17 additions and 13 deletions

View file

@ -1,5 +1,9 @@
ENV APT_PACKAGES="python3-all python3-dev python3-pip python3-venv python3-apt apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python python3-wheel sed lsb-release gnupg2 curl jq git python3-git rsync gitdch" ENV PYTHON_APT_PACKAGES="python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git"
ENV PIP_PACKAGES="wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser" ENV DEB_APT_PACKAGES="apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python"
ENV TOOLS_APT_PACKAGES="sed lsb-release gnupg2 curl jq git rsync gitdch"
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"
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 && \

1
Dockerfile.debian10 Symbolic link
View file

@ -0,0 +1 @@
Dockerfile.debian11

View file

@ -2,16 +2,15 @@
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 python packages: `python3-all python3-dev python3-pip python3-venv python3-git python3-wheel pylint pytest flake8 flake8-junit-report pylint-junit junitparser` - common python packages: `python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git`
- common Debian packages building tools: `dpkg-dev fakeroot build-essential devscripts debhelper dh-python` - common Debian packages building tools: `apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python`
- common tools: `sed lsb-release curl jq git rsync` - common tools: `sed lsb-release gnupg2 curl jq git rsync`
- GPG siging tools: `gnupg2`
- [gitdch](https://gitea.zionetrix.net/bn8/gitdch) tool - [gitdch](https://gitea.zionetrix.net/bn8/gitdch) tool
To use it: To use it:
```bash ```bash
docker run -it -v "$(pwd)":/src -w /src brenard/debian-python-deb docker run -it -v "$(pwd)":/src -w /src docker.io/brenard/debian-python-deb
``` ```
## Build ## Build
@ -21,19 +20,19 @@ docker run -it -v "$(pwd)":/src -w /src 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 11 12 for deb_version in 10 11 12
do do
docker build -t 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
docker build -t brenard/debian-python-deb:latest -f Dockerfile.debian${deb_version} . docker build -t docker.io/brenard/debian-python-deb:latest -f Dockerfile.debian${deb_version} .
``` ```
## Publish ## Publish
```bash ```bash
for deb_version in 11 12 for deb_version in 10 11 12
do do
docker push brenard/debian-python-deb:debian${deb_version} docker push docker.io/brenard/debian-python-deb:debian${deb_version}
done done
docker push brenard/debian-python-deb:latest docker push docker.io/brenard/debian-python-deb:latest
``` ```