mirror of
https://github.com/go-i2p/go-gitlooseleaf.git
synced 2025-07-03 17:59:45 -04:00
Removed docker instructions which don't apply to looseleaf
This commit is contained in:
17
DOCKER.md
17
DOCKER.md
@ -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
|
||||
```
|
34
Dockerfile
34
Dockerfile
@ -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"]
|
@ -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
|
||||
|
Reference in New Issue
Block a user