summaryrefslogtreecommitdiff
path: root/docker-test/Dockerfile
diff options
context:
space:
mode:
authorJoseph Henry <joseph.henry@zerotier.com>2015-09-27 21:16:02 -0400
committerJoseph Henry <joseph.henry@zerotier.com>2015-09-27 21:16:02 -0400
commit299ec12b39d3ac2d3dcd34a6c8af1eef4fff0494 (patch)
tree8f873ce95d7bc80c83cc30e295f2b4bbe86229a1 /docker-test/Dockerfile
parentb21c5d8e51e3e9bc234cfabee058352604603b03 (diff)
downloadinfinitytier-299ec12b39d3ac2d3dcd34a6c8af1eef4fff0494.tar.gz
infinitytier-299ec12b39d3ac2d3dcd34a6c8af1eef4fff0494.zip
Added docker-test folder
Diffstat (limited to 'docker-test/Dockerfile')
-rw-r--r--docker-test/Dockerfile33
1 files changed, 33 insertions, 0 deletions
diff --git a/docker-test/Dockerfile b/docker-test/Dockerfile
new file mode 100644
index 00000000..2c51b911
--- /dev/null
+++ b/docker-test/Dockerfile
@@ -0,0 +1,33 @@
+# A basic harnessed application example using ZeroTier-One and user-space IP stack
+FROM fedora:20
+
+MAINTAINER https://www.zerotier.com/
+
+# Add files
+ADD zerotier-one /
+ADD intercept /
+ADD lib/libintercept.so.1.0 /
+ADD lib/liblwip.so /
+
+# Install sys-call intercept library
+RUN cp libintercept.so.1.0 /lib/libintercept.so.1.0
+RUN ln -sf /lib/libintercept.so.1.0 /lib/libintercept
+RUN /usr/bin/install -c intercept /usr/bin
+
+# Install Apache
+RUN yum -y update && yum clean all
+RUN yum -y install httpd && yum clean all
+RUN echo "Apache" >> /var/www/html/index.html
+EXPOSE 9993/udp
+
+# Simple startup script to avoid some issues observed with container restart
+ADD run-apache.sh /run-apache.sh
+RUN chmod -v +x /run-apache.sh
+CMD ["/run-apache.sh"]
+
+# Start ZeroTier-One
+RUN touch /var/lib/zerotier-one/networks.d/e5cd7a9e1c5311ab.conf
+RUN ./zerotier-one -d -U -p9993 /root/dev/ztest
+
+# Start Applications
+