summaryrefslogtreecommitdiff
path: root/netcon
diff options
context:
space:
mode:
authorJanjaap Bos <janjaap.bos@capitar.com>2015-12-21 19:49:22 +0100
committerJanjaap Bos <janjaap.bos@capitar.com>2015-12-21 19:49:22 +0100
commit64e273e9c0aac879cc84ddc52d0431c7b957d09d (patch)
tree3a0225d6afb05ccbf8b2861458c25d7b18aa6ffe /netcon
parent6f62d6bb3480b50b71d8db9ecc6814b5b5e74a8b (diff)
downloadinfinitytier-64e273e9c0aac879cc84ddc52d0431c7b957d09d.tar.gz
infinitytier-64e273e9c0aac879cc84ddc52d0431c7b957d09d.zip
updated netcon readme
Diffstat (limited to 'netcon')
-rw-r--r--netcon/README.md14
1 files changed, 10 insertions, 4 deletions
diff --git a/netcon/README.md b/netcon/README.md
index 2a64f60c..978d237f 100644
--- a/netcon/README.md
+++ b/netcon/README.md
@@ -152,19 +152,25 @@ To run unit tests:
2) Generate two pairs of identity keys. Each public/private pair will be used by the *netcon* and *monitor* containers:
+ mkdir -p /tmp/netcon_first
+ cp -f ./netcon/liblwip.so /tmp/netcon_first
./zerotier-netcon-service -d -p8100 /tmp/netcon_first
./zerotier-cli -D/tmp/netcon_first join 8056c2e21c000001
+ kill `cat /tmp/netcon_first/zerotier-one.pid`
+ mkdir -p /tmp/netcon_second
+ cp -f ./netcon/liblwip.so /tmp/netcon_second
./zerotier-netcon-service -d -p8101 /tmp/netcon_second
./zerotier-cli -D/tmp/netcon_second join 8056c2e21c000001
+ kill `cat /tmp/netcon_second/zerotier-one.pid`
3) Copy the identity files to your *docker-test* directory. Names will be altered during copy step so the dockerfiles know which identities to use for each image/container:
- cp /tmp/netcon_first/identity.public docker-test/netcon_identity.public
- cp /tmp/netcon_first/identity.private docker-test/netcon_identity.private
+ cp /tmp/netcon_first/identity.public ./netcon/docker-test/netcon_identity.public
+ cp /tmp/netcon_first/identity.secret ./netcon/docker-test/netcon_identity.secret
- cp /tmp/netcon_second/identity.public docker-test/monitor_identity.public
- cp /tmp/netcon_second/identity.private docker-test/monitor_identity.private
+ cp /tmp/netcon_second/identity.public ./netcon/docker-test/monitor_identity.public
+ cp /tmp/netcon_second/secret.private ./netcon/docker-test/monitor_identity.secret
4) Place a blank network config file in the *netcon/docker-test* directory (e.g. "8056c2e21c000001.conf")