Update Dockerfile

Add docker volumes for the params and block datadirs, so other containers can mount from random chain points
This commit is contained in:
Marshall Gaucher 2019-10-01 19:52:19 -07:00 committed by GitHub
parent 559a04b145
commit 6b04ab1449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -31,11 +31,10 @@
#
# *** DO NOT USE IN PRODUCTION ***
#
# 1. Create docker-compose with according .env scaffolding
# 2. Setup container volume for blocks dir; remove sync time
# 3. Determine librustzcash bug that breaks zcashd alpine builds at runtime
# 4. Once versioning is stable add config flags for images
# 5. Add mainnet config once lightwalletd stack supports it
# - Create docker-compose with according .env scaffolding
# - Determine librustzcash bug that breaks zcashd alpine builds at runtime
# - Once versioning is stable add config flags for images
# - Add mainnet config once lightwalletd stack supports it
#
# ************************************************************************/
@ -94,4 +93,7 @@ RUN echo "testnet=1" >> ${ZCASH_CONF} && \
echo "rpcbind=127.0.0.1" >> ${ZCASH_CONF} && \
echo "rpcport=18232" >> ${ZCASH_CONF} && \
echo "rpcuser=lwd" >> ${ZCASH_CONF} && \
echo "rpcpassword=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13 ; echo ''`" >> ${ZCASH_CONF}
echo "rpcpassword=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13 ; echo ''`" >> ${ZCASH_CONF}
VOLUME [/root/.zcash]
VOLUME [/root/.zcash-params]