diff --git a/docker/mainnet/Dockerfile b/docker/mainnet/Dockerfile index b3de86a..b95ae1f 100644 --- a/docker/mainnet/Dockerfile +++ b/docker/mainnet/Dockerfile @@ -47,6 +47,7 @@ USER safeuser WORKDIR /home/safeuser RUN git clone https://github.com/Permissionless-Software-Foundation/bch-api WORKDIR /home/safeuser/bch-api +RUN git checkout ct-unstable RUN npm install --silent # Generate documentation diff --git a/docker/mainnet/cleanup-images.sh b/docker/mainnet/cleanup-images.sh new file mode 100755 index 0000000..405d9f5 --- /dev/null +++ b/docker/mainnet/cleanup-images.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# Remove all untagged docker images. +docker rmi $(docker images | grep "^" | awk '{print $3}') + diff --git a/docker/mainnet/start-local-mainnet.sh b/docker/mainnet/start-local-mainnet.sh index 13d3636..5014d14 100755 --- a/docker/mainnet/start-local-mainnet.sh +++ b/docker/mainnet/start-local-mainnet.sh @@ -40,7 +40,7 @@ export REDIS_HOST=172.17.0.1 export TOKENSECRET=somelongsecretvalue # So that bch-api can call bch-js locally. -export LOCAL_RESTURL=http://127.0.0.1:3000/v4/ +export LOCAL_RESTURL=http://127.0.0.1:3000/v5/ # Basic Authentication password export PRO_PASS=somerandomepassword:someotherrandompassword:aThirdPassword @@ -65,6 +65,11 @@ export LOG_MAX_SIZE=1m #5d means store no more than 5 days export LOG_MAX_FILES=5d +# (Optional) bcash full node export BCASH_SERVER=http://localhost:3002/ +# psf-slp-indexer +#export SLP_INDEXER_API=https://psf-slp-indexer.fullstack.cash/ +export SLP_INDEXER_API=http://172.17.0.1:5010/ + npm start