Docker fix: add ensubst
This commit is contained in:
@@ -19,7 +19,7 @@ ARG DEBIAN_FRONTEND="noninteractive" \
|
||||
DEBCONF_NOWARNINGS="yes"
|
||||
RUN apt-get update -y ; \
|
||||
apt-get upgrade -y ; \
|
||||
apt-get -y install --no-install-recommends locales tzdata jq moreutils; \
|
||||
apt-get -y install --no-install-recommends locales tzdata jq gettext-base; \
|
||||
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 ; \
|
||||
@@ -111,13 +111,30 @@ COPY --from=development /etc/init.d/dm /etc/init.d/dm
|
||||
COPY --from=development --chown=www-data:www-data $UHOME/web-build/build /var/www/web
|
||||
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/entrypoint.sh /entrypoint.sh
|
||||
COPY --from=development $UHOME/apostol-dm/docker/run.sh /run.sh
|
||||
COPY nginx.conf /etc/nginx/sites-enabled/default
|
||||
|
||||
## Generate bx testnet config
|
||||
RUN sed -e "/\[wallet\]/,/\[/ s/wif_version? =.*/wif_version = 239/" \
|
||||
-e "/\[wallet\]/,/\[/ s/hd_public_version =.*/hd_public_version = 70617039/" \
|
||||
-e "/\[wallet\]/,/\[/ s/hd_secret_version =.*/hd_secret_version = 70615956/" \
|
||||
-e "/\[wallet\]/,/\[/ s/pay_to_public_key_hash_version =.*/pay_to_public_key_hash_version = 111/" \
|
||||
-e "/\[wallet\]/,/\[/ s/pay_to_script_hash_version =.*/pay_to_script_hash_version = 196/" \
|
||||
-e "/\[network\]/,/\[/ s/identifier =.*/identifier = 118034699/" \
|
||||
-e "/seed = mainnet[0-9].libbitcoin.net:8333/ s/^#*/#/" \
|
||||
-e "/url = tcp:\/\/mainnet.libbitcoin.net:9091/ s/^#*/#/" \
|
||||
-e "/block_url = tcp:\/\/mainnet.libbitcoin.net:9093/ s/^#*/#/" \
|
||||
-e "/transaction_url = tcp:\/\/mainnet.libbitcoin.net:9094/ s/^#*/#/" \
|
||||
-e "/#seed = testnet[0-9].libbitcoin.net:18333/ s/^#*#//" \
|
||||
-e "/#url = tcp:\/\/testnet.libbitcoin.net:19091/ s/^#*#//" \
|
||||
-e "/#block_url = tcp:\/\/testnet.libbitcoin.net:19093/ s/^#*#//" \
|
||||
-e "/#transaction_url = tcp:\/\/testnet.libbitcoin.net:19094/ s/^#*#//" \
|
||||
/usr/local/etc/libbitcoin/bx.cfg > /usr/local/etc/libbitcoin/bx-testnet.cfg
|
||||
|
||||
#dm: error while loading shared libraries: libOpenPGP.so: cannot open shared object file: No such file or directory
|
||||
RUN ldconfig
|
||||
|
||||
RUN chmod 755 /entrypoint.sh
|
||||
RUN chmod 755 /run.sh
|
||||
|
||||
CMD ["/entrypoint.sh"]
|
||||
CMD ["/run.sh"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user