Add docker usage
This commit is contained in:
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
i2pkeys
|
||||
onionkeys
|
||||
tlskeys
|
||||
CercaForum
|
||||
about.i2p
|
19
DOCKER.md
Normal file
19
DOCKER.md
Normal file
@ -0,0 +1,19 @@
|
||||
# Docker usage
|
||||
|
||||
If you want to run it in docker, just clone the repository
|
||||
|
||||
```sh
|
||||
git clone https://github.com/eyedeekay/about.i2p
|
||||
```
|
||||
|
||||
Edit the `env.sh` file to contain a cookie `authkey`
|
||||
|
||||
```sh
|
||||
export AUTH_KEY="secure key"
|
||||
```
|
||||
|
||||
and run `./docker.sh`
|
||||
|
||||
```sh
|
||||
./docker.sh
|
||||
```
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM golang
|
||||
ADD . /usr/src/about.i2p
|
||||
WORKDIR /usr/src/about.i2p
|
||||
RUN adduser --home /home/user --gecos "user,,,," --disabled-password user
|
||||
RUN git clone https://github.com/eyedeekay/cerca ../../cblgh/cerca && \
|
||||
go build && \
|
||||
cp about.i2p /usr/bin/about.i2p
|
||||
WORKDIR /home/user/about.i2p
|
||||
CMD about.i2p
|
0
abouti2p/allow.txt
Normal file
0
abouti2p/allow.txt
Normal file
8
docker.sh
Executable file
8
docker.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
wd=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
## AUTH_KEY variable is in this file, edit it
|
||||
. env.sh
|
||||
docker build -t eyedeekay/about.i2p .
|
||||
docker rm -f about.i2p
|
||||
docker run -d --net=host --restart=always --name=about.i2p --volume="${wd}/abouti2p":/home/user/about.i2p eyedeekay/about.i2p about.i2p --authkey="${AUTH_KEY}"
|
Reference in New Issue
Block a user