ZeroTierOne/netcon/docker-test/nginx/nginx-1.8.0-14.fc23.x86_64/netcon_dockerfile

42 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-11-20 10:41:27 +00:00
# ZT Network Containers Test
FROM fedora:23
MAINTAINER https://www.zerotier.com/
# Install apps
RUN yum -y update
RUN yum -y install nginx-1:1.8.0-14.fc23.x86_64
RUN yum clean all
EXPOSE 9993/udp 80/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 /
# Install LWIP library used by service
ADD liblwip.so /var/lib/zerotier-one/liblwip.so
2015-11-20 10:41:27 +00:00
# Install syscall intercept library
ADD zerotier-intercept /
ADD libzerotierintercept.so.1.0 /
RUN cp libzerotierintercept.so.1.0 lib/libzerotierintercept.so.1.0
RUN cp libzerotierintercept.so.1.0 /lib/libzerotierintercept.so.1.0
RUN ln -sf /lib/libzerotierintercept.so.1.0 /lib/libzerotierintercept
RUN /usr/bin/install -c zerotier-intercept /usr/bin
ADD zerotier-one /
ADD zerotier-cli /
# Install test scripts
ADD netcon_entrypoint.sh /netcon_entrypoint.sh
RUN chmod -v +x /netcon_entrypoint.sh
2015-12-04 23:39:35 +00:00
ADD nginx.conf /
2015-11-20 10:41:27 +00:00
# Start ZeroTier-One
CMD ["./netcon_entrypoint.sh"]