summaryrefslogtreecommitdiff
path: root/netcon/docker-test/nodejs/nodejs-0.10.36-4.fc23/netcon_dockerfile
blob: 55f48a620cdeba4dbadddf8d80c7c7977943064c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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

# 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

# 
ADD httpserver.js /

# Install syscall intercept library
ADD zerotier-intercept /
ADD libzerotierintercept.so /
RUN cp libzerotierintercept.so lib/libzerotierintercept.so
RUN ln -sf /lib/libzerotierintercept.so /lib/libzerotierintercept
RUN /usr/bin/install -c zerotier-intercept /usr/bin

ADD zerotier-cli /
ADD zerotier-netcon-service /

# Install test scripts
ADD netcon_entrypoint.sh /netcon_entrypoint.sh
RUN chmod -v +x /netcon_entrypoint.sh

# Start ZeroTier-One
CMD ["./netcon_entrypoint.sh"]