docker: Add helper script to build docker config from fragments.

Set PIVX_PARAMSDIR automatically when usecontainers is set.
Fix PIVX wallet encryption when added.
This commit is contained in:
tecnovert
2023-01-03 20:03:36 +02:00
parent ac10c9db76
commit 9677c48f39
5 changed files with 134 additions and 4 deletions

View File

@@ -30,6 +30,11 @@ Set the latest Monero chain height, or the height your wallet must restore from:
Create docker-compose config:
# Using the helper script:
./scripts/build_yml_files.py -c bitcoin monero
# Or
cat compose-fragments/0_start.yml > docker-compose.yml
# Add the relevant coin fragments
@@ -124,6 +129,20 @@ Start BasicSwap:
## Add a coin
Stop all running containers
docker-compose stop
Update docker-compose config:
Rebuild using the helper script (must list all enabled coins):
./scripts/build_yml_files.py -c bitcoin monero
Or
cat compose-fragments/1_monero-wallet.yml >> docker-compose.yml
cat compose-fragments/1_monero-wallet.yml >> docker-compose-prepare.yml
@@ -131,10 +150,16 @@ Start BasicSwap:
cat compose-fragments/8_monero-daemon.yml >> docker-compose.yml
Prepare config files:
docker-compose -f docker-compose-prepare.yml build swapprepare
export ADD_COIN=monero
docker-compose -f docker-compose-prepare.yml run --rm swapprepare \
basicswap-prepare --nocores --addcoin=${ADD_COIN} --htmlhost="0.0.0.0" --particl_mnemonic=none
basicswap-prepare --nocores --usecontainers --addcoin=${ADD_COIN} --htmlhost="0.0.0.0" --particl_mnemonic=none
Prepare wallet:
docker-compose build monero_daemon
docker-compose build