Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

xud-docker

Discord Docker Pulls

A complete xud environment targeted at market makers using docker. Follow the 👉 market maker guide 👈

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_DIR

Developing 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/build

Test it locally.

bash setup.sh -b your-feature-branch

To 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-branch

After the corresponding Travis build succeeded, other people can easily run your feature branch on their machine like this.

bash xud.sh -b your-feature-branch

Use 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 local

Example: 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,connext

Example: Use testnet (light mode)

tools/build utils xud lndbtc lndltc connext
bash setup.sh -b local --dev --use-local-images xud,lndbtc,lndltc,connext

Example: 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,connext

Example: Enable optional service arby

Enabling boltz and webui works in a same way.

  1. Build arby image tools/build arby
  2. Append arby to --use-local-images
  3. Append --arby.disabled=false or persist below in your network conf file
[arby]
disabled = false

For more details about building and running local images please refer to the wiki.

You can’t perform that action at this time.