diff options
author | Joseph Henry <josephjah@gmail.com> | 2016-01-21 15:52:54 -0800 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2016-01-21 15:52:54 -0800 |
commit | bccd60125b5bf51a038bbd7951fb68bbc28df99f (patch) | |
tree | 5c260fcb8fe7d9c1db400bcd4b114f9be8ccfead /netcon/docker-test/python/python3/netcon_dockerfile | |
parent | 7127d2b811c25b04feb13d1ac070df88614550aa (diff) | |
download | infinitytier-bccd60125b5bf51a038bbd7951fb68bbc28df99f.tar.gz infinitytier-bccd60125b5bf51a038bbd7951fb68bbc28df99f.zip |
Added python, python3, darkhttpd unit tests
Diffstat (limited to 'netcon/docker-test/python/python3/netcon_dockerfile')
-rw-r--r-- | netcon/docker-test/python/python3/netcon_dockerfile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/netcon/docker-test/python/python3/netcon_dockerfile b/netcon/docker-test/python/python3/netcon_dockerfile new file mode 100644 index 00000000..f960fa30 --- /dev/null +++ b/netcon/docker-test/python/python3/netcon_dockerfile @@ -0,0 +1,37 @@ +# ZT Network Containers Test +FROM fedora:23 +MAINTAINER https://www.zerotier.com/ + +# Install apps +RUN yum -y update +RUN yum clean all + +EXPOSE 9993/udp 80/udp + +# 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 +ADD *.conf /var/lib/zerotier-one/networks.d/ +ADD *.conf / +ADD *.name / + +# Install LWIP library used by service +ADD liblwip.so /var/lib/zerotier-one/liblwip.so + +# Install syscall intercept library +ADD zerotier-intercept / +ADD libzerotierintercept.so / +RUN cp libzerotierintercept.so lib/libzerotierintercept.so +RUN ln -sf /lib/libzerotierintercept.so /lib/libzerotierintercept +RUN /usr/bin/install -c zerotier-intercept /usr/bin + +ADD zerotier-cli / +ADD zerotier-netcon-service / + +# Install test scripts +ADD netcon_entrypoint.sh /netcon_entrypoint.sh +RUN chmod -v +x /netcon_entrypoint.sh + +# Start ZeroTier-One +CMD ["./netcon_entrypoint.sh"] |