Add build files and description

This commit is contained in:
Andrey Beletsky 2018-10-04 00:15:04 +07:00
parent fe8b47ae6f
commit f6c66da8a5
3 changed files with 52 additions and 1 deletions

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM ubuntu:18.04
EXPOSE 5279
VOLUME /storage
RUN apt-get update && apt-get -y install unzip ca-certificates
RUN mkdir /daemon
ADD https://github.com/lbryio/lbry/releases/download/v0.30.0rc2/lbrynet-linux.zip /daemon/lbrynet-linux.zip
WORKDIR /daemon
RUN unzip lbrynet-linux.zip
RUN rm lbrynet-linux.zip
ENV LBRY_DATA_DIR /storage/data
ENV LBRY_LBRYUM_WALLET_DIR /storage/lbryum
ENV LBRY_DOWNLOAD_DIRECTORY /storage/download
ENV LBRY_API_HOST 0.0.0.0
COPY start.sh ./start.sh
CMD ["./start.sh"]

View file

@ -1 +1,30 @@
# docker-lbrynet
# Dockerfile for building lbrynet image
## Image usage
```
version: '3.2'
services:
daemon_test_local:
image: sayplastic/lbrynet:latest
ports:
- "5279:5279"
volumes:
- type: bind
source: ./storage
target: /storage
# or
volumes:
- type: volume
source: storage
target: /storage
```
## Building
```
docker build -t sayplastic/lbrynet:0.30rc2
docker tag sayplastic/lbrynet:0.30rc2 sayplastic/lbrynet:latest
docker push sayplastic/lbrynet
```

7
start.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
if [ ! -d "$LBRY_LBRYUM_WALLET_DIR" ]; then
mkdir $LBRY_LBRYUM_WALLET_DIR
fi
./lbrynet start