Removed docker instructions which don't apply to looseleaf

This commit is contained in:
eyedeekay
2025-05-05 15:36:36 -04:00
parent 228ab09cf8
commit a046854c58
4 changed files with 0 additions and 64 deletions

View File

@ -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
```

View File

@ -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"]

View File

@ -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

View File

@ -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