LbryNet: removes external torba dependency
This commit is contained in:
parent
8b8e97b085
commit
410936047c
1 changed files with 9 additions and 13 deletions
|
@ -41,29 +41,25 @@ FROM dependencies as compile
|
||||||
|
|
||||||
ARG REPO=https://github.com/lbryio/lbry.git
|
ARG REPO=https://github.com/lbryio/lbry.git
|
||||||
ARG VERSION=master
|
ARG VERSION=master
|
||||||
|
ARG RUN_FROM_SOURCE=false
|
||||||
RUN python3.7 -m pip install -U pyinstaller && \
|
RUN python3.7 -m pip install -U pyinstaller && \
|
||||||
git clone ${REPO} /lbry && \
|
git clone ${REPO} /lbry-sdk && \
|
||||||
git -C /lbry checkout ${VERSION}
|
git -C /lbry-sdk checkout ${VERSION}
|
||||||
WORKDIR /lbry
|
RUN python3.7 -m pip install -e /lbry-sdk/torba
|
||||||
RUN git clone https://github.com/lbryio/torba.git --depth 1 /lbry/torba
|
WORKDIR /lbry-sdk/lbry
|
||||||
WORKDIR /lbry/torba
|
|
||||||
RUN python3.7 -m pip install -e .
|
|
||||||
WORKDIR /lbry/
|
|
||||||
COPY stuff/start.sh /usr/local/bin/start
|
COPY stuff/start.sh /usr/local/bin/start
|
||||||
COPY stuff/checkmount.sh /usr/local/bin/checkmount
|
COPY stuff/checkmount.sh /usr/local/bin/checkmount
|
||||||
RUN export TRAVIS_COMMIT=`git rev-parse HEAD` && \
|
RUN export TRAVIS_COMMIT=`git rev-parse HEAD` && \
|
||||||
python3.7 scripts/set_build.py && \
|
python3.7 scripts/set_build.py && \
|
||||||
python3.7 -m pip install -e . && \
|
python3.7 -m pip install -e . && \
|
||||||
pyinstaller -F -n lbrynet lbrynet/extras/cli.py && \
|
pyinstaller -F -n lbrynet lbry/extras/cli.py && \
|
||||||
chmod +x /lbry/dist/lbrynet && \
|
chmod +x /lbry-sdk/lbry/dist/lbrynet && \
|
||||||
zip -j /lbry/dist/lbrynet-armhf.zip /lbry/dist/lbrynet && \
|
|
||||||
chmod a+x /usr/local/bin/* && \
|
chmod a+x /usr/local/bin/* && \
|
||||||
mkdir /target && \
|
/lbry-sdk/lbry/dist/lbrynet --version
|
||||||
/lbry/dist/lbrynet --version
|
|
||||||
|
|
||||||
FROM ${BASE_IMAGE} as app
|
FROM ${BASE_IMAGE} as app
|
||||||
RUN adduser lbrynet --gecos GECOS --shell /bin/bash --disabled-password --home /home/lbrynet
|
RUN adduser lbrynet --gecos GECOS --shell /bin/bash --disabled-password --home /home/lbrynet
|
||||||
COPY --from=compile /usr/local/bin/start /usr/local/bin/checkmount /lbry/dist/lbrynet /usr/local/bin/
|
COPY --from=compile /usr/local/bin/start /usr/local/bin/checkmount /lbry-sdk/lbry/dist/lbrynet /usr/local/bin/
|
||||||
EXPOSE 5279
|
EXPOSE 5279
|
||||||
USER lbrynet
|
USER lbrynet
|
||||||
ENTRYPOINT ["/usr/local/bin/checkmount"]
|
ENTRYPOINT ["/usr/local/bin/checkmount"]
|
||||||
|
|
Loading…
Reference in a new issue