From b285a4922788ac59658559cae5d09e26389df0a4 Mon Sep 17 00:00:00 2001 From: Leopere Date: Thu, 29 Nov 2018 19:37:32 +0000 Subject: [PATCH] Container builds and runs now. Entrypoint needs updated to use entrypoint but otherwise stable. --- lbrynet/.dockerignore | 1 + lbrynet/Dockerfile | 13 ++++--------- lbrynet/stuff/healthcheck.sh | 0 3 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 lbrynet/.dockerignore mode change 100644 => 100755 lbrynet/stuff/healthcheck.sh diff --git a/lbrynet/.dockerignore b/lbrynet/.dockerignore new file mode 100644 index 0000000..8fce603 --- /dev/null +++ b/lbrynet/.dockerignore @@ -0,0 +1 @@ +data/ diff --git a/lbrynet/Dockerfile b/lbrynet/Dockerfile index c643f5c..ec3d15c 100644 --- a/lbrynet/Dockerfile +++ b/lbrynet/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:18.04 LABEL MAINTAINER="leopere [at] nixc [dot] us" RUN apt-get update && apt-get -y install unzip -RUN adduser lbrynet --gecos GECOS --shell /bin/bash/ --disabled-password --home /lbrynet/ +RUN adduser lbrynet --gecos GECOS --shell /bin/bash --disabled-password --home /lbrynet/ ## Add lbrynet ADD https://lbry.io/get/lbrynet.linux.zip /lbrynet/lbrynet.linux.zip @@ -18,15 +18,12 @@ COPY stuff/docker-entrypoint.sh /usr/local/bin/docker-entrypoint COPY stuff/healthcheck.sh /usr/local/bin/healthcheck ## Daemon port [Intended for internal use] -EXPOSE 4444 ## LBRYNET talks to peers on port 3333 [Intended for external use] this port is used to discover other lbrynet daemons with blobs. -EXPOSE 3333 ## Expose 5566 Reflector port to listen on -EXPOSE 5566 ## Expose 5279 Port the daemon API will listen on -EXPOSE 5279 ## the lbryumx aka Wallet port [Intended for internal use] -EXPOSE 50001 +EXPOSE 4444 3333 5566 5279 50001 + ## TODO: Have wallets stored on their own volume/subdirectory for security, and backups. @@ -42,8 +39,6 @@ ADD https://raw.githubusercontent.com/lbryio/lbry/master/example_daemon_settings ## TODO: Downloaded blobs will be in their own separate volume for keeping backups of critical secrets and data separate from backups of potentially massive blob files. # VOLUME /lbrynet/Downloads/ +ENTRYPOINT ["/bin/bash"] - -## TODO: Add start.sh script which can assert permissions and do any configuration prep that's required on container start. -## Run on container launch CMD ["start"] diff --git a/lbrynet/stuff/healthcheck.sh b/lbrynet/stuff/healthcheck.sh old mode 100644 new mode 100755