netcon_dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # ZT Network Containers Test
  2. FROM ubuntu:14.04
  3. MAINTAINER https://www.zerotier.com/
  4. # Install
  5. RUN \
  6. sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
  7. apt-get update && \
  8. apt-get -y upgrade && \
  9. apt-get -y install nginx
  10. EXPOSE 9993/udp 80/udp
  11. # Add ZT files
  12. RUN mkdir -p /var/lib/zerotier-one/networks.d
  13. ADD netcon_identity.public /var/lib/zerotier-one/identity.public
  14. ADD netcon_identity.secret /var/lib/zerotier-one/identity.secret
  15. ADD *.conf /var/lib/zerotier-one/networks.d/
  16. ADD *.conf /
  17. ADD *.name /
  18. # Install LWIP library used by service
  19. ADD liblwip.so /var/lib/zerotier-one/liblwip.so
  20. # Install syscall intercept library
  21. ADD zerotier-intercept /
  22. ADD libzerotierintercept.so /
  23. RUN cp libzerotierintercept.so lib/libzerotierintercept.so
  24. RUN ln -sf /lib/libzerotierintercept.so /lib/libzerotierintercept
  25. RUN /usr/bin/install -c zerotier-intercept /usr/bin
  26. ADD zerotier-cli /
  27. ADD zerotier-netcon-service /
  28. # Install test scripts
  29. ADD netcon_entrypoint.sh /netcon_entrypoint.sh
  30. RUN chmod -v +x /netcon_entrypoint.sh
  31. ADD nginx.conf_ /
  32. # Start ZeroTier-One
  33. CMD ["./netcon_entrypoint.sh"]