mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
Modified Nginx test scripts
This commit is contained in:
parent
1dec034f77
commit
afafde2571
15 changed files with 391 additions and 13 deletions
|
@ -0,0 +1,44 @@
|
|||
# ZT Network Containers Test
|
||||
FROM ubuntu:14.04
|
||||
MAINTAINER https://www.zerotier.com/
|
||||
|
||||
|
||||
# Install
|
||||
RUN \
|
||||
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
|
||||
apt-get update && \
|
||||
apt-get -y upgrade && \
|
||||
apt-get -y install nginx
|
||||
|
||||
EXPOSE 9993/udp 80/udp
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
ADD nginx.conf_ /
|
||||
|
||||
# Start ZeroTier-One
|
||||
CMD ["./netcon_entrypoint.sh"]
|
Loading…
Add table
Add a link
Reference in a new issue