xud-docker
A complete xud environment targeted at market makers using docker. Follow the
Developing
The following instructions are geared towards developers, intending to contribute to xud-docker.
Prerequisites
Python 3.8 (or higher)
Initial setup
git clone https://github.com/ExchangeUnion/xud-docker.git $PROJECT_DIRDeveloping a feature
Create a feature branch.
git checkout -b your-feature-branch
Make your desired changes to the images located at: $PROJECT_DIR/images.
Build your modified images.
tools/buildTest it locally.
bash setup.sh -b your-feature-branchTo let others test without building the images by themselves push your feature branch to remote repository. Travis will build & push images for you.
git push origin your-feature-branchAfter the corresponding Travis build succeeded, other people can easily run your feature branch on their machine like this.
bash xud.sh -b your-feature-branchUse local built images
You can run xud-docker with your locally built images only:
git clone https://github.com/ExchangeUnion/xud-docker.git
cd xud-docker
git checkout -b localExample: Use simnet (light mode)
tools/build utils xud lndbtc-simnet lndltc-simnet connext
bash setup.sh -b local --dev --use-local-images xud,lndbtc,lndltc,connextExample: Use testnet (light mode)
tools/build utils xud lndbtc lndltc connext
bash setup.sh -b local --dev --use-local-images xud,lndbtc,lndltc,connextExample: Use mainnet (light mode)
See images/utils/config/template.py to get the right version of mainnet images
tools/build utils xud:1.0.0-rc.2 lndbtc:0.11.0-beta lndltc:0.11.0-beta.rc1 connext:1.3.1
bash setup.sh -b local --dev --use-local-images xud,lndbtc,lndltc,connextExample: Enable optional service arby
Enabling boltz and webui works in a same way.
- Build arby image
tools/build arby - Append
arbyto--use-local-images - Append
--arby.disabled=falseor persist below in your network conf file
[arby]
disabled = falseFor more details about building and running local images please refer to the wiki.