3c9fcf6fce
Merge branch 'master' of github.com:lbryio/lbry-docker Starting on a .travis.yml but may be unnecessary Renamed www.spee.ch and lbrynet-daemon to reflect their upstream repos. Disabled Adminer Started debug for chainquery container. Get latest release tagged url from github API remove zip.zip maybe? debugging curl explicit unzip Adding -o for unzip simplified, removed debug and fixed curl reverted to original unzip function Pull chainquery from prep container passing alternative config path Aligned config path location with linux spec updated config location maybe don't be as explicit adding debug for chainqueryconfig.toml Fixes magicless chainquery and starts on bootstrap added chainquery/.gitignore to ignore large blobs. fixed Dockerfile up to use staged prep and production removed db-seed.sh as we have quick-bootstrap.sh start.sh needed modification to pull config from the right location in the linux FS Added chainquery/.dockerignore to prevent extremely long build times in the future Removed fancy bash vars in chainquery/.env Started work on getting quick-bootstrap.sh ready for release. Switch to lbrynet network Switched network name to lbrynet Merge branch 'leopere' of github.com:lbryio/lbry-docker into leopere Remove debugging access port bind Expose chainquery to the internet Merge branch 'leopere' of github.com:lbryio/lbry-docker into leopere Removed now unnecessary run command Undo Cleanup and commenting on environment variables Start getting ready for adding chainquery start.sh magic Quick update
38 lines
1.5 KiB
Docker
38 lines
1.5 KiB
Docker
## This base image is for running latest chainquery
|
|
FROM ubuntu:18.04 as prep
|
|
LABEL MAINTAINER="leopere [at] nixc [dot] us"
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install unzip curl && \
|
|
apt-get autoclean -y && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
mkdir /download
|
|
|
|
RUN curl -L -o /download/chainquery.zip $(curl -s https://api.github.com/repos/lbryio/chainquery/releases | fgrep 'Linux_x86_64.zip' | grep download | head -n 1 | cut -d'"' -f4) && \
|
|
cd /download && \
|
|
ls -lAh /download && pwd && \
|
|
unzip chainquery.zip && \
|
|
rm chainquery.zip
|
|
## I really want to use this instead of all the curl stuff at one point.
|
|
# ADD --chown=1000:1000 https://github.com/lbryio/chainquery/releases/download/latest/chainquery_latest_Linux_x86_64.zip /download
|
|
|
|
|
|
## Switch to Alpine eventually we might need to compile in Alpine for this.
|
|
FROM ubuntu:18.04 as app
|
|
|
|
RUN adduser chainquery --gecos GECOS --shell /bin/bash --disabled-password --home /home/chainquery
|
|
|
|
COPY --from=0 /download/chainquery /usr/bin
|
|
|
|
# ADD --chown=1000:1000 https://github.com/lbryio/chainquery/releases/download/latest/chainquery_latest_Linux_x86_64.zip /usr/bin
|
|
COPY chainqueryconfig.toml /etc/chainquery/
|
|
ADD --chown=1000:1000 https://raw.githubusercontent.com/lbryio/chainquery/master/config/default/chainqueryconfig.toml /etc/chainquery/chainqueryconfig.toml.orig
|
|
COPY start.sh /usr/local/bin/start
|
|
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
|
|
|
USER chainquery
|
|
|
|
## Expose Chainquery API port
|
|
EXPOSE 6300
|
|
|
|
CMD ["start"]
|