Merge pull request #16 from chamunks/master

Last PR before switching to pushing directly to the main Repository
This commit is contained in:
Leopere 2018-10-07 02:27:32 +00:00 committed by GitHub
commit d6d60d3fd7
10 changed files with 86 additions and 3 deletions

View file

@ -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.

1
chainquery/debugpaste-it.sh Executable file
View file

@ -0,0 +1 @@
#!/bin/bash

32
docs/issue_template.md Normal file
View file

@ -0,0 +1,32 @@
<!--- WARNING VERY IMPORTANT COMMENTS TO FOLLOW -->
<!--- Please keep in mind that this repository is not production ready yet -->
<!--- This means that most functionality is not finalized as of yet. -->
<!--- Incomplete reports might be marked as invalid. -->
<!--- Please try to stick to a single issue per issue, grave yarding and issue hijacking will be dealt with accordingly. Repeat offenders may be barred from interaction with the repository. -->
<!--- Markdown comments like the above can be deleted or left in so long as you include the information they request of you and are followed as best as possible -->
<!--- We don't believe in gatekeeping so we want to be as accessible to as many people as possible however our jobs are made significantly easier with quality issue reporting. -->
<!--- Do not change the next few lines. -->
## 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.
<!--- From here and below please fill out to the best of your ability leaving the beginning section in tact -->
**Description of the problem:**
<!--- start with a succinct and clear description of what you were trying to do and what happened instead. Keep in mind that we can't read your mind and you'll increase your odds of getting a successful resolution to your issue.
Make sure that you're including the specific container your issue is in regards to and also keep in mind that reporting an application specific bug is to be done on the application specific repositories associated with the application itself not the Docker portion.
-->
**How to replicate:**
<!--- If you can reproduce the issue please tell us as detailed as possible step by step how to do that -->
**Checklist**:
<!-- Make sure you have completed the following steps (put an "X" between of brackets): -->
~~- [] 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.

View file

@ -11,12 +11,16 @@ RUN adduser lbrycrdd --gecos GECOS --shell /bin/bash --disabled-password --home
mkdir -p /etc/lbrycrdd && \ mkdir -p /etc/lbrycrdd && \
chown -R 1000:1000 /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/ && \ cd /usr/bin/ && \
unzip lbrycrd-linux.zip && \ unzip lbrycrd-linux.zip && \
rm lbrycrd-linux.zip && \ rm lbrycrd-linux.zip && \
chmod +x lbrycrdd lbrycrd-cli lbrycrd-tx chmod +x lbrycrdd lbrycrd-cli lbrycrd-tx
ADD debugpaste-it.sh /usr/local/bin/debugpaste-it
ADD start.sh /usr/local/bin/start ADD start.sh /usr/local/bin/start
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint

3
lbrycrd/debugpaste-it.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
echo "placeholder for now, come back soon for more debugging magic"

View file

@ -12,9 +12,14 @@ RUN unzip /data/lbrynet.linux.zip -d /data/ && \
rm /data/lbrynet.linux.zip && \ rm /data/lbrynet.linux.zip && \
chown -Rv lbrynet:lbrynet /data 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 ## Install into PATH
RUN mv /data/lbrynet-* /bin/ RUN mv /data/lbrynet-* /bin/
ADD debugpaste-it.sh /usr/local/bin/debugpaste-it
## Daemon port [Intended for internal use] ## Daemon port [Intended for internal use]
EXPOSE 4444 EXPOSE 4444
## Wallet port [Intended for internal use] ## Wallet port [Intended for internal use]

View file

@ -0,0 +1,2 @@
#!/bin/bash
echo "For now we're going to go with a tune in next time for a debugpaste."

8
traefik/debugpaste-it.sh Executable file
View file

@ -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 "========================================================================="

View file

@ -15,10 +15,15 @@ RUN apk update && apk --no-cache add git curl wget python build-base bash && \
cd /usr/local/src/spee.ch/ && \ cd /usr/local/src/spee.ch/ && \
npm install 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 ## Install container support files
RUN curl -s https://raw.githubusercontent.com/chamunks/docker-support/master/install | /bin/sh RUN curl -s https://raw.githubusercontent.com/chamunks/docker-support/master/install | /bin/sh
ADD ./docker-entrypoint.sh /bin/docker-entrypoint ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint
ADD ./healthcheck.sh /bin/healthcheck ADD healthcheck.sh /usr/local/bin/healthcheck
ADD debugpaste-it.sh /usr/local/bin/debugpaste-it
HEALTHCHECK CMD healthcheck HEALTHCHECK CMD healthcheck
EXPOSE 3000 EXPOSE 3000

2
www.spee.ch/debugpaste-it.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
echo "For now we're going to go with a tune in next time for a debugpaste."