Compare commits

..

No commits in common. "b7f46c38acdef468313905a6ec70fe524983374f" and "45d475868deb1cf58d70d0bbccc07c92a84c7c53" have entirely different histories.

3 changed files with 13 additions and 17 deletions

View file

@ -1,9 +1,5 @@
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"
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"
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 PIP_PACKAGES="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 && \
apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update && \

View file

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

View file

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