summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-09 12:15:42 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-09 12:15:42 -0700
commite33adad8f5b1bb64cc4c5b318a8fb95077407419 (patch)
treecb824022b9ac53e672d5af457877cfe919db78ad /examples
parent9a2565115119f4c56bada376974ed77c6b2661c7 (diff)
downloadinfinitytier-e33adad8f5b1bb64cc4c5b318a8fb95077407419.tar.gz
infinitytier-e33adad8f5b1bb64cc4c5b318a8fb95077407419.zip
Script to quickly generate test docker env files.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/docker/maketestenv.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/docker/maketestenv.sh b/examples/docker/maketestenv.sh
new file mode 100755
index 00000000..275692e1
--- /dev/null
+++ b/examples/docker/maketestenv.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ -z "$1" -o -z "$2" ]; then
+ echo 'Usage: maketestenv.sh <output file e.g. test-01.env> <network ID>'
+ exit 1
+fi
+
+newid=`../../zerotier-idtool generate`
+
+echo "ZEROTIER_IDENTITY_SECRET=$newid" >$1
+echo "ZEROTIER_NETWORK=$2" >>$1