Install gitdch using debian package

This commit is contained in:
Benjamin Renard 2023-07-31 23:44:40 +02:00
parent 0e03184115
commit 03151df29c
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -1,5 +1,11 @@
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"
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 apt-get update && apt-get install --no-install-recommends -y $APT_PACKAGES && apt-get clean && rm -rf /var/lib/apt/lists/* && apt-file update
RUN git clone https://gitea.zionetrix.net/bn8/gitdch.git /usr/local/src/gitdch && ln -s /usr/local/src/gitdch/gitdch /usr/local/bin/gitdch
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 && \
apt-get -o APT::Get::AllowUnauthenticated=true install --yes zionetrix-archive-keyring && \
apt-get update && \
apt-get install --no-install-recommends -y $APT_PACKAGES && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
apt-file update