2015-11-04 02:10:39 +00:00
|
|
|
# ZT Netcon Throughput test
|
2015-11-10 03:13:53 +00:00
|
|
|
FROM fedora:23
|
2015-11-04 02:10:39 +00:00
|
|
|
MAINTAINER https://www.zerotier.com/
|
|
|
|
|
2015-11-04 22:45:26 +00:00
|
|
|
# Install apps
|
|
|
|
RUN yum -y update
|
2015-11-10 03:13:53 +00:00
|
|
|
RUN yum -y install httpd-2.4.16-1.fc23
|
2015-11-04 22:45:26 +00:00
|
|
|
RUN yum -y install nano
|
|
|
|
RUN yum clean all
|
2015-11-04 02:10:39 +00:00
|
|
|
|
|
|
|
EXPOSE 9993/udp 9992/udp 9991/udp 9990/udp
|
|
|
|
|
|
|
|
# Install sys-call intercept library
|
|
|
|
ADD intercept /
|
|
|
|
ADD libintercept.so.1.0 /
|
|
|
|
RUN cp libintercept.so.1.0 lib/libintercept.so.1.0
|
|
|
|
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
|
|
|
|
|
2015-11-04 22:45:26 +00:00
|
|
|
# Add ZT files
|
|
|
|
RUN mkdir -p /var/lib/zerotier-one/networks.d
|
|
|
|
RUN touch /var/lib/zerotier-one/networks.d/e5cd7a9e1c5311ab.conf
|
|
|
|
ADD zerotier-one /
|
|
|
|
ADD zerotier-cli /
|
|
|
|
|
2015-11-04 02:10:39 +00:00
|
|
|
# Install test-setup scripts
|
|
|
|
ADD generate_file.sh /generate_file.sh
|
|
|
|
RUN chmod -v +x /generate_file.sh
|
|
|
|
ADD entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod -v +x /entrypoint.sh
|
|
|
|
|
|
|
|
# Install LWIP library used by service
|
|
|
|
ADD liblwip.so /
|
|
|
|
RUN mkdir -p ext/bin/lwip
|
|
|
|
RUN cp liblwip.so ext/bin/lwip/liblwip.so
|
|
|
|
|
|
|
|
# Start ZeroTier-One
|
|
|
|
CMD ["./entrypoint.sh"]
|