Docker image to build Debian package of Python apps/libraries
Find a file
2024-06-27 11:37:53 +02:00
.gitignore First release 2022-04-30 14:25:18 +02:00
Dockerfile.common Add python3-setuptools package 2024-06-27 11:37:53 +02:00
Dockerfile.debian10 Rebase images on node 16 debian based images to allow using them to run Forgejo Actions 2024-03-10 19:32:46 +01:00
Dockerfile.debian11 Rebase images on node 16 debian based images to allow using them to run Forgejo Actions 2024-03-10 19:32:46 +01:00
Dockerfile.debian12 Rebase images on node 16 debian based images to allow using them to run Forgejo Actions 2024-03-10 19:32:46 +01:00
README.md Add python3-setuptools package 2024-06-27 11:37:53 +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 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
  • 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 tool

To use it:

docker run -it -v "$(pwd)":/src -w /src docker.io/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 docker.io/brenard/debian-python-deb:debian${deb_version} -f Dockerfile.debian${deb_version} .
done
docker build -t docker.io/brenard/debian-python-deb:latest -f Dockerfile.debian${deb_version} .

Publish

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