ZeroTierOne/docker-test/Dockerfile

41 lines
1.0 KiB
Docker
Raw Normal View History

2015-09-28 00:51:32 +00:00
# A basic harnessed application example using ZeroTier-One and user-space IP stack
FROM fedora:20
MAINTAINER https://www.zerotier.com/
# Add files
ADD zerotier-one /
ADD intercept /
ADD lib/libintercept.so.1.0 /
ADD lib/liblwip.so /
2015-09-28 20:56:14 +00:00
RUN cp libintercept.so.1.0 lib/libintercept.so.1.0
RUN cp liblwip.so lib/liblwip.so
2015-09-28 00:51:32 +00:00
# Install sys-call intercept library
RUN cp libintercept.so.1.0 /lib/libintercept.so.1.0
RUN ln -sf /lib/libintercept.so.1.0 /lib/libintercept
RUN /usr/bin/install -c intercept /usr/bin
# Install Apache
2015-09-28 20:56:14 +00:00
#RUN yum -y update && yum clean all
#RUN yum -y install httpd && yum clean all
#RUN echo "Apache" >> /var/www/html/index.html
2015-09-28 01:16:02 +00:00
EXPOSE 9993/udp
2015-09-28 00:51:32 +00:00
# Start ZeroTier-One
2015-09-28 01:26:57 +00:00
RUN mkdir -p /var/lib/zerotier-one/networks.d
2015-09-28 01:16:02 +00:00
RUN touch /var/lib/zerotier-one/networks.d/e5cd7a9e1c5311ab.conf
2015-09-28 20:56:14 +00:00
#ENTRYPOINT ["./entrypoint.sh"]
CMD ["./zerotier-one", "-U -p9993"]
#ADD run-apache.sh /run-apache.sh
#RUN chmod -v +x /run-apache.sh
#CMD ["/run-apache.sh"]
2015-09-28 00:51:32 +00:00
2015-09-28 20:56:14 +00:00
ADD zerotier-cli /
#RUN sleep 10
#RUN ./zerotier-cli listnetworks