From 0f871ed44f586ee86bd744f9ddde215b0f1d3de8 Mon Sep 17 00:00:00 2001 From: Leopere Date: Sat, 6 Oct 2018 18:38:23 -0400 Subject: [PATCH 1/8] default git issue template --- README.md | 1 + docs/issue_template.md | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 docs/issue_template.md diff --git a/README.md b/README.md index e69de29..39ed40b 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +milestone 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. From 1a40f1ecbdda0dac07185540966ad40eff41c25e Mon Sep 17 00:00:00 2001 From: Leopere Date: Sat, 6 Oct 2018 20:02:13 -0400 Subject: [PATCH 2/8] Some ultra basic documentation for now --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 39ed40b..c99297a 100644 --- a/README.md +++ b/README.md @@ -1 +1,21 @@ -milestone +# 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. From adea9723cf81f7bb7f1c31eb76dde246018e45f5 Mon Sep 17 00:00:00 2001 From: Leopere Date: Sat, 6 Oct 2018 20:06:52 -0400 Subject: [PATCH 3/8] Adding feedback for traefik's debugpaste-it.sh I may add this into the image but for the most part its a placeholder. --- traefik/debugpaste-it.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 traefik/debugpaste-it.sh diff --git a/traefik/debugpaste-it.sh b/traefik/debugpaste-it.sh new file mode 100644 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 "=========================================================================" From 10ea0e80b9651297d3ffb3ba7537a0c957d96015 Mon Sep 17 00:00:00 2001 From: Leopere Date: Sat, 6 Oct 2018 20:13:48 -0400 Subject: [PATCH 4/8] Add debugpaste to path --- lbrycrd/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 From c42fb493119fce5f3ce41453e2091eb9456eb6f5 Mon Sep 17 00:00:00 2001 From: Leopere Date: Sat, 6 Oct 2018 20:14:37 -0400 Subject: [PATCH 5/8] Adding debugpaste-it.sh placeholder I'll be adding more to this soon. --- lbrycrd/debugpaste-it.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 lbrycrd/debugpaste-it.sh 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" From 1af9883f8df775a659acf7f01be25fc158334461 Mon Sep 17 00:00:00 2001 From: Leopere Date: Sat, 6 Oct 2018 20:24:11 -0400 Subject: [PATCH 6/8] Add beginnings of debugpaste-it to lbrynet-daemon --- lbrynet-daemon/Dockerfile | 5 +++++ lbrynet-daemon/debugpaste-it.sh | 2 ++ 2 files changed, 7 insertions(+) create mode 100755 lbrynet-daemon/debugpaste-it.sh 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." From 37787530c89f29536de646548001ec1d785a6f8d Mon Sep 17 00:00:00 2001 From: Leopere Date: Sat, 6 Oct 2018 20:24:39 -0400 Subject: [PATCH 7/8] made debugpaste-it.sh executable --- traefik/debugpaste-it.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 traefik/debugpaste-it.sh diff --git a/traefik/debugpaste-it.sh b/traefik/debugpaste-it.sh old mode 100644 new mode 100755 From 25dc26aa05674e8ba15f7e7100a8d8865d2a9d57 Mon Sep 17 00:00:00 2001 From: Leopere Date: Sat, 6 Oct 2018 20:26:53 -0400 Subject: [PATCH 8/8] Pushing trailing changes for starting debugpaste-it --- chainquery/debugpaste-it.sh | 1 + www.spee.ch/Dockerfile | 9 +++++++-- www.spee.ch/debugpaste-it.sh | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100755 chainquery/debugpaste-it.sh create mode 100755 www.spee.ch/debugpaste-it.sh 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/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."