Compare commits
3 commits
45d475868d
...
b7f46c38ac
Author | SHA1 | Date | |
---|---|---|---|
|
b7f46c38ac | ||
|
8493b606ab | ||
|
8efb745777 |
3 changed files with 17 additions and 13 deletions
|
@ -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 PIP_PACKAGES="wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser"
|
||||
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"
|
||||
|
||||
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 && \
|
||||
|
|
1
Dockerfile.debian10
Symbolic link
1
Dockerfile.debian10
Symbolic link
|
@ -0,0 +1 @@
|
|||
Dockerfile.debian11
|
21
README.md
21
README.md
|
@ -2,16 +2,15 @@
|
|||
|
||||
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`
|
||||
- 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`
|
||||
- [gitdch](https://gitea.zionetrix.net/bn8/gitdch) tool
|
||||
|
||||
To use it:
|
||||
|
||||
```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
|
||||
|
@ -21,19 +20,19 @@ docker run -it -v "$(pwd)":/src -w /src brenard/debian-python-deb
|
|||
export DOCKER_BUILDKIT=1
|
||||
export COMPOSE_DOCKER_CLI_BUILD=1
|
||||
|
||||
for deb_version in 11 12
|
||||
for deb_version in 10 11 12
|
||||
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
|
||||
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
|
||||
|
||||
```bash
|
||||
for deb_version in 11 12
|
||||
for deb_version in 10 11 12
|
||||
do
|
||||
docker push brenard/debian-python-deb:debian${deb_version}
|
||||
docker push docker.io/brenard/debian-python-deb:debian${deb_version}
|
||||
done
|
||||
docker push brenard/debian-python-deb:latest
|
||||
docker push docker.io/brenard/debian-python-deb:latest
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue