add dm-cli
This commit is contained in:
@@ -10,7 +10,6 @@ services:
|
||||
- DM_TESTNET=true
|
||||
- DM_BITCOIN=
|
||||
- DM_FEE=0.1%
|
||||
- DM_WEBAUTH=false
|
||||
- |
|
||||
DM_PGP_SEC=
|
||||
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
||||
|
||||
@@ -23,6 +23,7 @@ RUN apt-get update -y ; \
|
||||
apt-get -y install --no-install-recommends gpg gpg-agent ; \
|
||||
apt-get -y install --no-install-recommends nginx ; \
|
||||
apt-get -y install --no-install-recommends openssl ca-certificates ; \
|
||||
apt-get -y install --no-install-recommends curl ; \
|
||||
apt-get clean ; \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
@@ -74,6 +75,12 @@ RUN su -l --shell /bin/bash $UNAME -c 'wget https://raw.githubusercontent.com/li
|
||||
cd $UHOME ; \
|
||||
./install.sh --verbose --build-boost --build-zmq --disable-shared
|
||||
|
||||
## Install dm-cli
|
||||
RUN su -l --shell /bin/bash $UNAME -c 'git clone https://git.bitdeals.org/private/dm-cli.git ; \
|
||||
cd dm-cli/dm-cli ; \
|
||||
make' ; \
|
||||
install --mode 755 --owner=root --group=root $UHOME/dm-cli/dm-cli/dm-cli /usr/local/bin/dm-cli
|
||||
|
||||
## Do not use cache when building next layers of the image.
|
||||
ARG NOCACHE=0
|
||||
|
||||
@@ -103,6 +110,7 @@ ENV UHOME=$UHOME
|
||||
COPY --from=development /usr/local/ /usr/local/
|
||||
COPY --from=development /etc/dm/ /etc/dm/
|
||||
COPY --from=development /usr/sbin/dm /usr/sbin/dm
|
||||
COPY --from=development /usr/local/bin/dm-cli /usr/local/bin/dm-cli
|
||||
COPY --from=development --chown=$UNAME:$UNAME $UHOME/apostol-dm/docker/bitdeals-testnet.asc /etc/dm/bitdeals-testnet.asc
|
||||
COPY --from=development --chown=$UNAME:$UNAME $UHOME/apostol-dm/docker/bitdeals.asc /etc/dm/bitdeals.asc
|
||||
COPY --from=development $UHOME/apostol-dm/docker/run.sh /run.sh
|
||||
|
||||
Reference in New Issue
Block a user