Docker image to build Debian package of Python apps/libraries
Find a file
2023-08-08 14:35:56 +02:00
.gitignore First release 2022-04-30 14:25:18 +02:00
Dockerfile.common Install gitdch using debian package 2023-07-31 23:44:40 +02:00
Dockerfile.debian10 Add debian10 tag 2023-08-08 14:35:56 +02:00
Dockerfile.debian11 Add a Debian Bookworm (12) 2023-07-19 18:25:00 +02:00
Dockerfile.debian12 Add a Debian Bookworm (12) 2023-07-19 18:25:00 +02:00
README.md Add debian10 tag 2023-08-08 14:35:56 +02:00

Docker image 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 Debian packages building tools: dpkg-dev fakeroot build-essential devscripts debhelper dh-python
  • common tools: sed lsb-release curl jq git rsync
  • GPG siging tools: gnupg2
  • gitdch tool

To use it:

docker run -it -v "$(pwd)":/src -w /src brenard/debian-python-deb

Build

# Need to use Dockerfile+ (https://github.com/edrevo/dockerfile-plus)
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1

for deb_version in 10 11 12
do
    docker build -t brenard/debian-python-deb:debian${deb_version} -f Dockerfile.debian${deb_version} .
done
docker build -t brenard/debian-python-deb:latest -f Dockerfile.debian${deb_version} .

Publish

for deb_version in 10 11 12
do
    docker push brenard/debian-python-deb:debian${deb_version}
done
docker push brenard/debian-python-deb:latest