Skip to content

Commit 98dc06c

Browse files
reliveyyraladevkilrau
authored
docs: update README with local run guide (#704)
* docs: update README with local run guide * refine README * add code type * format fix * add wiki link * suggestion fix Co-authored-by: Kilian Rausch | ⚡ OpenDEX ⚡ <[email protected]> Co-authored-by: raladev <[email protected]> Co-authored-by: Kilian Rausch | ⚡ OpenDEX ⚡ <[email protected]>
1 parent bd4cd7a commit 98dc06c

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

README.md

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,54 @@ git push origin your-feature-branch
5050
After the corresponding Travis build succeeded, other people can easily run your feature branch on their machine like this.
5151

5252
```bash
53-
./xud.sh -b your-feature-branch
53+
bash xud.sh -b your-feature-branch
5454
```
55+
56+
57+
## Use local built images
58+
59+
You can run xud-docker with your locally built images only:
60+
61+
```bash
62+
git clone https://github.com/ExchangeUnion/xud-docker.git
63+
cd xud-docker
64+
git checkout -b local
65+
```
66+
67+
#### Example: Use simnet (light mode)
68+
69+
```bash
70+
tools/build utils xud lndbtc-simnet lndltc-simnet connext
71+
bash setup.sh -b local --dev --use-local-images xud,lndbtc,lndltc,connext
72+
```
73+
74+
#### Example: Use testnet (light mode)
75+
76+
```bash
77+
tools/build utils xud lndbtc lndltc connext
78+
bash setup.sh -b local --dev --use-local-images xud,lndbtc,lndltc,connext
79+
```
80+
81+
#### Example: Use mainnet (light mode)
82+
83+
See `images/utils/config/template.py` to get the right version of mainnet images
84+
85+
```bash
86+
tools/build utils xud:1.0.0-rc.2 lndbtc:0.11.0-beta lndltc:0.11.0-beta.rc1 connext:1.3.1
87+
bash setup.sh -b local --dev --use-local-images xud,lndbtc,lndltc,connext
88+
```
89+
90+
#### Example: Enable optional service arby
91+
92+
Enabling boltz and webui works in a same way.
93+
94+
1. Build arby image `tools/build arby`
95+
2. Append `arby` to `--use-local-images`
96+
3. Append `--arby.disabled=false` or persist below in your network conf file
97+
98+
```toml
99+
[arby]
100+
disabled = false
101+
```
102+
103+
For more details about building and running local images please refer to [the wiki](https://github.com/ExchangeUnion/xud-docker/wiki/Build-and-run-local-images).

0 commit comments

Comments
 (0)