diff options
Diffstat (limited to 'docker-test/httpd/httpd_demo/netcon_dockerfile')
-rw-r--r-- | docker-test/httpd/httpd_demo/netcon_dockerfile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/docker-test/httpd/httpd_demo/netcon_dockerfile b/docker-test/httpd/httpd_demo/netcon_dockerfile new file mode 100644 index 00000000..bcc029c2 --- /dev/null +++ b/docker-test/httpd/httpd_demo/netcon_dockerfile @@ -0,0 +1,44 @@ +# ZT Network Containers Test +FROM fedora:23 +MAINTAINER https://www.zerotier.com/ + +# Install apps +RUN yum -y update +RUN yum -y install httpd +RUN yum clean all + +#include Apache +ADD htdocs/index.html / +ADD htdocs/ZeroTierIcon.png / +RUN mv index.html /var/www/html/index.html +RUN mv ZeroTierIcon.png /var/www/html/ZeroTierIcon.png + +EXPOSE 9993/udp + +# Install syscall intercept library +ADD intercept / +ADD libintercept.so.1.0 / +RUN cp libintercept.so.1.0 lib/libintercept.so.1.0 +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 + +# Add ZT files +RUN mkdir -p /var/lib/zerotier-one/networks.d +ADD netcon_identity.public /var/lib/zerotier-one/identity.public +ADD netcon_identity.secret /var/lib/zerotier-one/identity.secret +RUN touch /var/lib/zerotier-one/networks.d/e5cd7a9e1c5311ab.conf +ADD zerotier-one / +ADD zerotier-cli / + +# Install test scripts +ADD netcon_entrypoint.sh /netcon_entrypoint.sh +RUN chmod -v +x /netcon_entrypoint.sh + +# Install LWIP library used by service +ADD liblwip.so / +RUN mkdir -p ext/bin/lwip +RUN cp liblwip.so ext/bin/lwip/liblwip.so + +# Start ZeroTier-One +CMD ["./netcon_entrypoint.sh"] |