Add bash-completion & python3-argcomplete and use /bin/bash as entrypoint

This commit is contained in:
Benjamin Renard 2024-07-25 17:26:57 +02:00
parent c30776fa2a
commit 0624c63219
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC
2 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,6 @@
ENV PYTHON_APT_PACKAGES="python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git python3-setuptools"
ENV PYTHON_APT_PACKAGES="python3-all python3-dev python3-pip python3-venv python3-apt python3-appdirs python3-wheel python3-git python3-setuptools python3-argcomplete"
ENV DEB_APT_PACKAGES="apt-file dpkg-dev fakeroot build-essential devscripts debhelper dh-python equivs"
ENV TOOLS_APT_PACKAGES="sed lsb-release gnupg2 curl jq git rsync gitdch wget ca-certificates"
ENV TOOLS_APT_PACKAGES="sed lsb-release gnupg2 curl jq git rsync gitdch wget ca-certificates bash-completion"
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 flake8-codeclimate"
@ -14,3 +14,5 @@ RUN echo "deb http://debian.zionetrix.net stable main" > /etc/apt/sources.list.d
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
apt-file update
ENTRYPOINT /bin/bash

View file

@ -3,10 +3,12 @@
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`. Note: `pylint-gitlab` not available on Debian 9.
- common PIP installed python packages: `stdeb poetry2setup wheel2deb pylint pytest flake8 flake8-junit-report pylint-junit junitparser pylint-gitlab flake8-codeclimate python3-argcomplete`. Note: `pylint-gitlab` not available on Debian 9.
- 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`
- common tools: `sed lsb-release gnupg2 curl jq git rsync wget ca-certificates bash-completion`
- [gitdch](https://gitea.zionetrix.net/bn8/gitdch) tool
- based on Debian _slim_ version of [Node](https://hub.docker.com/_/node) docker images to allow using it with Forgejo Actions.
- use `/bin/bash` as entrypoint
To use it: