Update build process

This commit is contained in:
Andrey Beletsky 2019-01-29 18:22:50 +07:00
parent f6c66da8a5
commit 6a483b4a5c
6 changed files with 31 additions and 5 deletions

View file

@ -3,13 +3,14 @@ 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
COPY lbrynet ./
COPY conf/daemon_settings.yml ./
COPY conf/test_daemon_settings.yml ./
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
RUN chmod a+x start.sh
CMD ["./start.sh"]

14
Makefile Normal file
View file

@ -0,0 +1,14 @@
.PHONY: get_release
get_release:
scripts/get_release.sh
.PHONY: build
build:
docker build -t sayplastic/lbrynet .
.PHONY: publish
publish:
docker push sayplastic/lbrynet
clean:
rm -rf lbrynet lbrynet-linux.zip

View file

@ -24,7 +24,7 @@ services:
## Building
```
docker build -t sayplastic/lbrynet:0.30rc2
docker tag sayplastic/lbrynet:0.30rc2 sayplastic/lbrynet:latest
docker build -t sayplastic/lbrynet:0.30rc6 .
docker tag sayplastic/lbrynet:0.30rc6 sayplastic/lbrynet:latest
docker push sayplastic/lbrynet
```

1
conf/daemon_settings.yml Normal file
View file

@ -0,0 +1 @@
use_upnp: False

View file

@ -0,0 +1,7 @@
lbryum_servers:
- orchstr8:50001
blockchain_name: lbrycrd_testnet
delete_blobs_on_remove: True
use_upnp: False

3
start.sh Executable file → Normal file
View file

@ -3,5 +3,8 @@
if [ ! -d "$LBRY_LBRYUM_WALLET_DIR" ]; then
mkdir $LBRY_LBRYUM_WALLET_DIR
fi
if [ ! -d "$LBRY_DOWNLOAD_DIRECTORY" ]; then
mkdir $LBRY_DOWNLOAD_DIRECTORY
fi
./lbrynet start