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