2015-11-23 13:15:19 +00:00
|
|
|
# ZT Network Containers Test
|
|
|
|
FROM fedora:23
|
|
|
|
MAINTAINER https://www.zerotier.com/
|
|
|
|
|
|
|
|
# Install apps
|
|
|
|
RUN yum -y update
|
|
|
|
RUN yum -y install nodejs
|
|
|
|
RUN yum clean all
|
|
|
|
|
|
|
|
EXPOSE 9993/udp 8080/udp
|
|
|
|
|
2015-12-04 23:39:35 +00:00
|
|
|
# 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 /
|
|
|
|
|
2015-12-03 15:11:33 +00:00
|
|
|
# Install LWIP library used by service
|
|
|
|
ADD liblwip.so /var/lib/zerotier-one/liblwip.so
|
|
|
|
|
2015-11-23 13:15:19 +00:00
|
|
|
#
|
|
|
|
ADD httpserver.js /
|
|
|
|
|
|
|
|
# Install syscall intercept library
|
|
|
|
ADD zerotier-intercept /
|
2015-12-07 13:37:14 +00:00
|
|
|
ADD libzerotierintercept.so /
|
|
|
|
RUN cp libzerotierintercept.so lib/libzerotierintercept.so
|
|
|
|
RUN ln -sf /lib/libzerotierintercept.so /lib/libzerotierintercept
|
2015-11-23 13:15:19 +00:00
|
|
|
RUN /usr/bin/install -c zerotier-intercept /usr/bin
|
|
|
|
|
|
|
|
ADD zerotier-cli /
|
2015-12-07 11:21:46 +00:00
|
|
|
ADD zerotier-netcon-service /
|
2015-11-23 13:15:19 +00:00
|
|
|
|
|
|
|
# Install test scripts
|
|
|
|
ADD netcon_entrypoint.sh /netcon_entrypoint.sh
|
|
|
|
RUN chmod -v +x /netcon_entrypoint.sh
|
|
|
|
|
|
|
|
# Start ZeroTier-One
|
|
|
|
CMD ["./netcon_entrypoint.sh"]
|