diff --git a/README.md b/README.md index e69de29..c99297a 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,21 @@ +# lbry-Docker + +## Currently supported platforms + +**X64 cpu architecture** + +**More will be added on request and over time** + +## Documentation is WIP +Currently this repository is a WIP and is under heavy construction, use at your own risk make sure you keep regular backups of your wallets. Your milage may vary as how far this will work for you be sure to file good and concise issues if you plan to and keep in mind we're allergic to regressions when filing PR's. + +## Debugpaste +I'll be including a function to get a self destructing debugpaste of your LBRY appliances logs you'll be able to execute something similar to the following in all containers to export raw logs to a paste service where you can then either modify them removing sensitive data or just take that URL and create a new issue after you [(Use Issue Search)](https://github.com/lbryio/lbry-docker/issues?utf8=%E2%9C%93&q=is%3Aissue) to make sure there isn't already an open thread for your issue. + +#### Example debugpaste +``` +cd chainquery/ +docker-compose exec chainquery debugpaste +https://haste.nixc.us/ocatumatozaq.nginx +``` +You can then take output given in the response from the debugpaste command and put that into your github issue. diff --git a/chainquery/debugpaste-it.sh b/chainquery/debugpaste-it.sh new file mode 100755 index 0000000..a9bf588 --- /dev/null +++ b/chainquery/debugpaste-it.sh @@ -0,0 +1 @@ +#!/bin/bash diff --git a/docs/issue_template.md b/docs/issue_template.md new file mode 100644 index 0000000..c1331af --- /dev/null +++ b/docs/issue_template.md @@ -0,0 +1,32 @@ + + + + + + + + + + +## Issue relevant for 1.0 master branch +This issue may only be relevant for pre 1.0 milestone release of these docker containers please keep this in mind when reading the rest of this issue and it's subsequent conversation. + + + +**Description of the problem:** + + + + +**How to replicate:** + + +**Checklist**: + +~~- [] I included a `debugpaste` link debugpastes only last 90 days from last time they were loaded in a browser.[Inclusion of debugpaste is WIP]~~ +- [] I made sure there are no duplicates of this report [(Use Search)](https://github.com/lbryio/lbry-docker/issues?utf8=%E2%9C%93&q=is%3Aissue) +- [] I made sure I am using an up-to-date version of the container. +- [] I Made sure the bug/error is not caused by any other application. diff --git a/lbrycrd/Dockerfile b/lbrycrd/Dockerfile index f9256b1..9d8d620 100644 --- a/lbrycrd/Dockerfile +++ b/lbrycrd/Dockerfile @@ -11,12 +11,16 @@ RUN adduser lbrycrdd --gecos GECOS --shell /bin/bash --disabled-password --home mkdir -p /etc/lbrycrdd && \ chown -R 1000:1000 /etc/lbrycrdd -RUN wget -O /usr/bin/lbrycrd-linux.zip https://github.com/lbryio/lbrycrd/releases/download/v0.12.2.2/lbrycrd-linux.zip && \ +RUN wget -quiet -O /usr/bin/debugpaste https://github.com/nixc-us/debugpaste-it/raw/master/bin/debugpaste_64 && \ + chmod +x /usr/bin/debugpaste + +RUN wget -quiet -O /usr/bin/lbrycrd-linux.zip https://github.com/lbryio/lbrycrd/releases/download/v0.12.2.2/lbrycrd-linux.zip && \ cd /usr/bin/ && \ unzip lbrycrd-linux.zip && \ rm lbrycrd-linux.zip && \ chmod +x lbrycrdd lbrycrd-cli lbrycrd-tx +ADD debugpaste-it.sh /usr/local/bin/debugpaste-it ADD start.sh /usr/local/bin/start ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint diff --git a/lbrycrd/debugpaste-it.sh b/lbrycrd/debugpaste-it.sh new file mode 100755 index 0000000..32612ec --- /dev/null +++ b/lbrycrd/debugpaste-it.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "placeholder for now, come back soon for more debugging magic" diff --git a/lbrynet-daemon/Dockerfile b/lbrynet-daemon/Dockerfile index 8ece57a..5165e44 100644 --- a/lbrynet-daemon/Dockerfile +++ b/lbrynet-daemon/Dockerfile @@ -12,9 +12,14 @@ RUN unzip /data/lbrynet.linux.zip -d /data/ && \ rm /data/lbrynet.linux.zip && \ chown -Rv lbrynet:lbrynet /data +RUN wget -quiet -O /usr/bin/debugpaste https://github.com/nixc-us/debugpaste-it/raw/master/bin/debugpaste_64 && \ + chmod +x /usr/bin/debugpaste + ## Install into PATH RUN mv /data/lbrynet-* /bin/ +ADD debugpaste-it.sh /usr/local/bin/debugpaste-it + ## Daemon port [Intended for internal use] EXPOSE 4444 ## Wallet port [Intended for internal use] diff --git a/lbrynet-daemon/debugpaste-it.sh b/lbrynet-daemon/debugpaste-it.sh new file mode 100755 index 0000000..f003d2d --- /dev/null +++ b/lbrynet-daemon/debugpaste-it.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo "For now we're going to go with a tune in next time for a debugpaste." diff --git a/traefik/debugpaste-it.sh b/traefik/debugpaste-it.sh new file mode 100755 index 0000000..95ef3e0 --- /dev/null +++ b/traefik/debugpaste-it.sh @@ -0,0 +1,8 @@ +#!/bin/bash +echo "=========================================================================" +echo "=========================================================================" +echo "lbry-docker: does not maintain or support custom configuration of traefik" +echo " lbry-docker comes with a YMMV boilerplate reverse proxy for" +echo " your convenience only and changing this configuration voids" +echo " your warranty." +echo "=========================================================================" diff --git a/www.spee.ch/Dockerfile b/www.spee.ch/Dockerfile index b66a174..fc8297c 100644 --- a/www.spee.ch/Dockerfile +++ b/www.spee.ch/Dockerfile @@ -15,10 +15,15 @@ RUN apk update && apk --no-cache add git curl wget python build-base bash && \ cd /usr/local/src/spee.ch/ && \ npm install +RUN wget -quiet -O /usr/bin/debugpaste https://github.com/nixc-us/debugpaste-it/raw/master/bin/debugpaste_64 && \ + chmod +x /usr/bin/debugpaste + ## Install container support files RUN curl -s https://raw.githubusercontent.com/chamunks/docker-support/master/install | /bin/sh -ADD ./docker-entrypoint.sh /bin/docker-entrypoint -ADD ./healthcheck.sh /bin/healthcheck +ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint +ADD healthcheck.sh /usr/local/bin/healthcheck +ADD debugpaste-it.sh /usr/local/bin/debugpaste-it + HEALTHCHECK CMD healthcheck EXPOSE 3000 diff --git a/www.spee.ch/debugpaste-it.sh b/www.spee.ch/debugpaste-it.sh new file mode 100755 index 0000000..f003d2d --- /dev/null +++ b/www.spee.ch/debugpaste-it.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo "For now we're going to go with a tune in next time for a debugpaste."