Added support for test network in Docker
parent
520cfc89b4
commit
351ba953cf
|
@ -0,0 +1,2 @@
|
|||
DATA/
|
||||
DATA-TEST/
|
19
README.md
19
README.md
|
@ -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:
|
||||
```
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
node set-test httpport:$PORT password:$PASSWORD
|
||||
node run-test.js
|
Loading…
Reference in New Issue