From af36fe4df98a32c8da38c8261496075e8f36402d Mon Sep 17 00:00:00 2001 From: Timon Engelke Date: Sat, 23 Sep 2023 15:27:51 +0200 Subject: [PATCH] Remove own gitea image --- .github/workflows/build_all_containers.yml | 1 - gitea/Dockerfile | 30 ---------------------- gitea/README.md | 23 ----------------- gitea/run | 12 --------- 4 files changed, 66 deletions(-) delete mode 100644 gitea/Dockerfile delete mode 100644 gitea/README.md delete mode 100755 gitea/run diff --git a/.github/workflows/build_all_containers.yml b/.github/workflows/build_all_containers.yml index 4718a4f..9d8d92f 100644 --- a/.github/workflows/build_all_containers.yml +++ b/.github/workflows/build_all_containers.yml @@ -18,7 +18,6 @@ jobs: container: - bitpoll - etherpad - - gitea - karma - limesurvey - nextcloud diff --git a/gitea/Dockerfile b/gitea/Dockerfile deleted file mode 100644 index d972d9a..0000000 --- a/gitea/Dockerfile +++ /dev/null @@ -1,30 +0,0 @@ -FROM debian:bullseye-slim - -ENV VERSION=1.19.4 -ENV UID=2001 - -RUN useradd -u $UID -g nogroup git -d /home/gitea -m - -RUN apt update; \ - apt-get --no-install-recommends -y install git openssl openssh-client openssh-server wget xz-utils ca-certificates vim - -RUN mkdir /opt/gitea /opt/config /opt/storage /opt/log; \ - chown -R git:nogroup /opt -USER git -WORKDIR /opt/gitea -RUN wget -q https://github.com/go-gitea/gitea/releases/download/v$VERSION/gitea-$VERSION-linux-amd64.xz -O- | xz -d > gitea; \ - chmod +x gitea - -RUN mkdir -p /opt/gitea/custom/conf; \ - ln -sf /opt/config/app.ini /opt/gitea/custom/conf/; \ - ln -s /opt/storage/data /opt/gitea/data; \ - chown git /opt/log - -USER root -RUN usermod -d /opt/storage/gituser git -RUN echo "AcceptEnv SSH_ORIGINAL_COMMAND" >> /etc/ssh/sshd_config - -COPY run /usr/local/bin/run -EXPOSE 3005/tcp 3006/tcp -VOLUME /opt/storage /opt/config -ENTRYPOINT /usr/local/bin/run diff --git a/gitea/README.md b/gitea/README.md deleted file mode 100644 index b47b78c..0000000 --- a/gitea/README.md +++ /dev/null @@ -1,23 +0,0 @@ -% Gitea - Git with a cup of tea - -UID: 2001 - -Ports: -- web: 3005 -- ssh: 3006 - -Mountpoints: -- /opt/config -- /opt/storage -- /opt/log - - -# Initial steps: -```sh -mkdir -p /opt/config/gitea /var/log/gitea /srv/gitea -cp $CONFIG_DIR/app.ini /opt/config/gitea/app.ini -vim !$ # Set options -- there will be a setup page on first run, too. -chown 2001:nogroup /opt/config/gitea /opt/config/gitea/app.ini /var/log/gitea /srv/gitea -``` - -The LDAP settings can be configured via the Web interface. diff --git a/gitea/run b/gitea/run deleted file mode 100755 index b6adb88..0000000 --- a/gitea/run +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -set -e - -if grep -i "START_SSH_SERVER *= *false" /opt/config/app.ini; then - echo AuthorizedKeysFile .ssh/id_ed25519.pub >> /etc/ssh/sshd_config - service ssh start -fi - -hostname -I > /opt/storage/gitea.ip - -su git -s /bin/sh -c "/opt/gitea/gitea web" -