add gitlabreleaseuploader.py here

This commit is contained in:
2024-08-20 14:39:22 +02:00
parent 5fa49204dc
commit 009ddcc734
5 changed files with 428 additions and 18 deletions

View File

@ -1,15 +1,16 @@
FROM debian:buster
FROM debian:bookworm
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.hottis.de/dockerized/base-build-env"
LABEL AlternativeImageName="wollud1969/base-build-env"
ARG RELEASETOOL_URL="https://home.hottis.de/gitlab/wolutator/gitlabreleaseuploader/uploads/f97b219a1df1910822b9936a8236dfbd/GitlabReleaseTool.zip"
RUN \
sed -i 's,deb.debian.org,ftp.de.debian.org,g' /etc/apt/sources.list.d/debian.sources
RUN \
apt update && \
apt upgrade -y && \
apt autoremove && \
apt install -y ca-certificates && \
apt install -y make && \
apt install -y openssh-client && \
@ -20,28 +21,30 @@ RUN \
apt install -y python3-yaml && \
apt install -y python3-pip && \
apt install -y python3-xmltodict && \
apt install -y python3-cheetah && \
apt install -y gpg && \
apt install -y apt-transport-https && \
apt install -y wget && \
apt install -y curl && \
apt install -y unzip && \
apt install -y zip && \
apt install -y vim.tiny && \
apt install -y vim-tiny && \
apt install -y p7zip-full && \
apt install -y procps && \
apt install -y doxygen && \
apt install -y jq && \
rm -rf /var/lib/apt/lists/* && \
ln -s /usr/bin/python3 /usr/bin/python && \
ln -s /usr/bin/pip3 /usr/bin/pip && \
pip install Cheetah3 && \
cd /tmp && \
wget $RELEASETOOL_URL && \
unzip GitlabReleaseTool.zip && \
chmod 755 gitlabreleaseuploader.py && \
chmod 755 deleterelease.py && \
chmod 755 checksemver.py && \
mv gitlabreleaseuploader.py /usr/bin && \
mv deleterelease.py /usr/bin && \
mv checksemver.py /usr/bin
apt install -y jq
RUN \
ln -s /usr/bin/python3 /usr/bin/python && \
mkdir -p /tmp/gru
COPY *.py /tmp/gru
RUN \
cd /tmp/gru && \
for I in *.py; do python -m py_compile $I; done && \
for I in *.py; do python -m pycodestyle --ignore=E501 $I; done && \
chmod 755 *.py && \
cp *.py /usr/bin