netcon_dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # ZT Network Containers Test
  2. FROM fedora:23
  3. MAINTAINER https://www.zerotier.com/
  4. # Install apps
  5. RUN yum -y update
  6. RUN yum -y install nginx-1:1.8.0-13.fc23.x86_64
  7. RUN yum clean all
  8. EXPOSE 9993/udp 80/udp
  9. # Add ZT files
  10. RUN mkdir -p /var/lib/zerotier-one/networks.d
  11. ADD netcon_identity.public /var/lib/zerotier-one/identity.public
  12. ADD netcon_identity.secret /var/lib/zerotier-one/identity.secret
  13. ADD *.conf /var/lib/zerotier-one/networks.d/
  14. ADD *.conf /
  15. ADD *.name /
  16. # Install LWIP library used by service
  17. ADD liblwip.so /var/lib/zerotier-one/liblwip.so
  18. # Install syscall intercept library
  19. ADD zerotier-intercept /
  20. ADD libzerotierintercept.so /
  21. RUN cp libzerotierintercept.so lib/libzerotierintercept.so
  22. RUN ln -sf /lib/libzerotierintercept.so /lib/libzerotierintercept
  23. RUN /usr/bin/install -c zerotier-intercept /usr/bin
  24. ADD zerotier-cli /
  25. ADD zerotier-netcon-service /
  26. # Install test scripts
  27. ADD netcon_entrypoint.sh /netcon_entrypoint.sh
  28. RUN chmod -v +x /netcon_entrypoint.sh
  29. ADD nginx.conf_ /
  30. # Start ZeroTier-One
  31. CMD ["./netcon_entrypoint.sh"]