summaryrefslogtreecommitdiff
path: root/netcon/docker-test/build_zt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'netcon/docker-test/build_zt.sh')
-rwxr-xr-xnetcon/docker-test/build_zt.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/netcon/docker-test/build_zt.sh b/netcon/docker-test/build_zt.sh
new file mode 100755
index 00000000..189a1e0d
--- /dev/null
+++ b/netcon/docker-test/build_zt.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# Builds Zerotier-One and libraries required for Network Containers, then
+# copies the binaries into the test directory.
+
+cd ../../
+
+make clean
+make
+cd netcon
+make -f make-intercept.mk lib
+rm *.o
+rm liblwip.so
+make -f make-liblwip.mk
+
+cd docker-test
+
+cp ../../zerotier-one zerotier-one
+cp ../../zerotier-cli zerotier-cli
+
+cp ../liblwip.so liblwip.so
+cp ../libzerotierintercept.so.1.0 libzerotierintercept.so.1.0
+cp ../zerotier-intercept zerotier-intercept
+