1
0
Fork 0

Added support for test network in Docker

merge-requests/1/head
Nuno Ferro 2019-03-13 19:42:32 +00:00
parent 520cfc89b4
commit 351ba953cf
3 changed files with 24 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
DATA/
DATA-TEST/

View File

@ -154,6 +154,25 @@ git pull
--name tera tera
```
If you want to run on the test network you need to change the volume to the `DATA-TEST` directory and set the command to `/tera/run-test.sh`. You may also want to change the `PORT` environment variable.
Run interactively (forwarding ports):
```
docker run -it -p 8081:8081 -p 40000:40000 \
-v $(pwd)/DATA-TEST:/DATA-TEST \
-e PORT=8081 \
--name tera tera /tera/run-test.sh
```
Run on the background (using the host network):
```
docker run -d --restart unless-stopped --net=host \
-v $(pwd)/DATA-TEST:/DATA-TEST \
-e PASSWORD=another_password \
-e HTTP_PORT=8081 \
--name tera tera /tera/run-test.sh
```
## MAIN NETWORK
Default values:
```

3
Source/run-test.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
node set-test httpport:$PORT password:$PASSWORD
node run-test.js