Host-customized fork of https://github.com/tecnovert/basicswap/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.6 KiB
63 lines
1.6 KiB
6 years ago
|
|
||
4 years ago
|
# Docker Setup
|
||
|
|
||
|
## Build the images
|
||
|
```
|
||
|
$ docker-compose build
|
||
|
```
|
||
|
|
||
|
## Prepare the binaries, coin dirs and settings
|
||
|
```
|
||
|
$ docker run -t --name swap_prepare -v /tmp/coindata:/coindata i_swapclient basicswap-prepare --datadir=/coindata --withcoins=monero --withoutcoins=litecoin
|
||
|
```
|
||
|
|
||
|
Record the mnemonic from the output of the above command.
|
||
|
|
||
|
Remove swap_prepare container (and logs):
|
||
|
```
|
||
|
$ docker rm swap_prepare
|
||
|
```
|
||
|
|
||
|
|
||
|
# Running on windows 10
|
||
|
|
||
|
|
||
6 years ago
|
Work in progress - doesn't work reliably.
|
||
|
|
||
6 years ago
|
|
||
|
Install the latest docker toolbox from:
|
||
|
https://github.com/docker/toolbox/releases
|
||
|
|
||
|
Start docker through the desktop icon, it should open a terminal
|
||
|
|
||
|
Download basicswap
|
||
|
https://github.com/tecnovert/basicswap/archive/master.zip
|
||
|
|
||
|
Extract it.
|
||
|
|
||
|
Navigate to the docker folder.
|
||
|
|
||
|
|
||
|
If you have an existing litecoin chain, copy the contents of your datadir excluding litecoin.conf and any wallets to coindata/litecoin
|
||
|
If your litecoin chain is pruned create a new wallet in the existing datadir to avoid having to resync the chain.
|
||
|
|
||
|
|
||
6 years ago
|
Right click -> properties on the coindata folder, in the security tab make sure all users have 'Modify' rights.
|
||
|
|
||
|
|
||
6 years ago
|
Run the script: dockerbuild.bat
|
||
|
|
||
|
It should open a new terminal window and start building the container.
|
||
|
|
||
|
Once that completes run: dockerup.bat
|
||
|
|
||
|
In the terminal that opened for docker toolbox, find the line:
|
||
|
docker is configured to use the default machine with IP 192.168.99.100
|
||
|
|
||
|
And open the ip address it displays at port 12700 in a browser:
|
||
|
192.168.99.100:12700
|
||
|
|
||
|
Should show some html.
|
||
|
|
||
|
Now go to the view wallets page, and wait for all chains to completely sync.
|