Merge branch 'dockerize' into 'master'

Add a Dockerfile and instructions to run with Docker

See merge request pleroma/relay!20
This commit is contained in:
kaniini 2019-09-30 10:45:09 +00:00
commit f3b4fc44b8
3 changed files with 24 additions and 0 deletions

3
.gitignore vendored
View File

@ -96,3 +96,6 @@ ENV/
viera.yaml viera.yaml
viera.jsonld viera.jsonld
# config file
relay.yaml

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM python:3-alpine
WORKDIR /workdir
RUN apk add alpine-sdk autoconf automake libtool gcc
ADD requirements.txt /workdir/
RUN pip3 install -r requirements.txt
ADD . /workdir/
CMD ["python", "-m", "relay"]
VOLUME ["/workdir/data"]

View File

@ -69,3 +69,13 @@ This will show the available management tasks:
When following remote relays, you should use the `/actor` endpoint as you would in When following remote relays, you should use the `/actor` endpoint as you would in
Pleroma and other LitePub-compliant software. Pleroma and other LitePub-compliant software.
## Docker
You can run ActivityRelay with docker. Edit `relay.yaml` so that the database
location is set to `./data/relay.jsonld` and then build and run the docker
image :
$ docker volume create activityrelay-data
$ docker build -t activityrelay .
$ docker run -d -p 8080:8080 -v activityrelay-data:/workdir/data activityrelay