diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0fedc5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +DATA/ +DATA-TEST/ \ No newline at end of file diff --git a/README.md b/README.md index 61c8ac8..354d8d1 100644 --- a/README.md +++ b/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: ``` diff --git a/Source/run-test.sh b/Source/run-test.sh new file mode 100755 index 0000000..a75c605 --- /dev/null +++ b/Source/run-test.sh @@ -0,0 +1,3 @@ +#!/bin/bash +node set-test httpport:$PORT password:$PASSWORD +node run-test.js \ No newline at end of file