From a046854c583264d2076f986190a00c390a80c952 Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Mon, 5 May 2025 15:36:36 -0400 Subject: [PATCH] Removed docker instructions which don't apply to looseleaf --- DOCKER.md | 17 ----------------- Dockerfile | 34 ---------------------------------- install.sh | 3 --- start.sh | 10 ---------- 4 files changed, 64 deletions(-) delete mode 100644 DOCKER.md delete mode 100644 Dockerfile delete mode 100755 start.sh diff --git a/DOCKER.md b/DOCKER.md deleted file mode 100644 index f5f1e95..0000000 --- a/DOCKER.md +++ /dev/null @@ -1,17 +0,0 @@ -Docker Instructions: -==================== - -The Dockerfile in this repo assumes a completely self-contained setup, where I2P resides in the same container as gitea. -This is purely for simplicity's sake. -In order to build it, use: - -```sh -docker build -t go-i2p/go-gittisane . -``` - -then in order to run it, use: - -```sh -docker run --name i2p-gittisane -d go-i2p/go-gittisane -docker log i2p-gittinsane -``` \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index b7831de..0000000 --- a/Dockerfile +++ /dev/null @@ -1,34 +0,0 @@ -# Stage 1: Download gittisane -FROM alpine:latest as downloader -RUN apk add --no-cache curl bash grep -WORKDIR /download/ -COPY download.sh . -RUN /download/download.sh -RUN ls /download/downloads -RUN cp /download/downloads/gitea-Linux /download/gittisane-linux-amd64 - -# Stage 2: Runtime -FROM geti2p/i2p:latest - -# Copy gittisane binary -COPY --from=downloader /download/gittisane-linux-amd64 /usr/local/bin/gittisane -RUN chmod +x /usr/local/bin/gittisane - -# Create data directories -RUN mkdir -p /data/gitea - -# Configure I2P for SAM -RUN echo "i2cp.tcp.host=127.0.0.1\n\ -i2cp.tcp.port=7654\n\ -sam.enabled=true\n\ -sam.host=127.0.0.1\n\ -sam.port=7656" >> /i2p/router.config - -# Setup volumes -VOLUME ["/data/gitea", "/i2p/.i2p"] -WORKDIR /data/gitea - -# Create startup script -COPY start.sh /usr/local/bin/start.sh - -ENTRYPOINT ["start.sh"] \ No newline at end of file diff --git a/install.sh b/install.sh index f93ae6c..4566fa2 100644 --- a/install.sh +++ b/install.sh @@ -20,10 +20,7 @@ chmod 770 /etc/gitea killall gitea sleep 3s GITEA_URL=https://github.com/go-i2p/go-gitlooseleaf/releases/download/nightly/gitea-Linux -#GITEA_URL=https://github.com/go-i2p/go-gitlooseleaf/releases/download/v1.23.7/gitea-Linux wget -O /usr/local/bin/gitea "$GITEA_URL" chmod +x /usr/local/bin/gitea setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/gitea -chmod 750 /etc/gitea -chmod 640 /etc/gitea/app.ini su - git diff --git a/start.sh b/start.sh deleted file mode 100755 index 8c19c3b..0000000 --- a/start.sh +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/sh -nohup /startapp.sh 2> err.log 1> log.log & -export countdown=30 -while [ countdown -gt 0 ]; do - echo "Waiting for app to start... $countdown seconds left" - countdown=$((countdown - 1)) - sleep 1 -done -ls /usr/local/bin -/usr/local/bin/gittisane web