mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 02:40:13 +00:00
Basic Dockerfile for building test agents.
This commit is contained in:
parent
c03550de35
commit
1cae7327ae
5
.gitignore
vendored
5
.gitignore
vendored
@ -34,7 +34,7 @@ Thumbs.db
|
|||||||
/world/mkworld
|
/world/mkworld
|
||||||
/world/*.c25519
|
/world/*.c25519
|
||||||
|
|
||||||
# Miscellaneous file types that we don't want to check in
|
# Miscellaneous temporaries, build files, etc.
|
||||||
*.log
|
*.log
|
||||||
*.opensdf
|
*.opensdf
|
||||||
*.user
|
*.user
|
||||||
@ -50,10 +50,9 @@ Thumbs.db
|
|||||||
*.autosave
|
*.autosave
|
||||||
*.tmp
|
*.tmp
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
# cluster-geo stuff
|
|
||||||
cluster-geo/cluster-geo/config.js
|
cluster-geo/cluster-geo/config.js
|
||||||
cluster-geo/cluster-geo/cache.*
|
cluster-geo/cluster-geo/cache.*
|
||||||
|
tests/http/zerotier-one
|
||||||
|
|
||||||
# MacGap wrapper build files
|
# MacGap wrapper build files
|
||||||
/ext/mac-ui-macgap1-wrapper/src/MacGap.xcodeproj/project.xcworkspace/xcuserdata/*
|
/ext/mac-ui-macgap1-wrapper/src/MacGap.xcodeproj/project.xcworkspace/xcuserdata/*
|
||||||
|
23
tests/http/Dockerfile
Normal file
23
tests/http/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM centos:latest
|
||||||
|
|
||||||
|
MAINTAINER https://www.zerotier.com/
|
||||||
|
|
||||||
|
EXPOSE 9993/udp
|
||||||
|
|
||||||
|
RUN yum -y update && yum -y install epel-release && yum -y install nodejs npm && yum clean all
|
||||||
|
|
||||||
|
RUN mkdir -p /var/lib/zerotier-one
|
||||||
|
RUN mkdir -p /var/lib/zerotier-one/networks.d
|
||||||
|
RUN touch /var/lib/zerotier-one/networks.d/ffffffffffffffff.conf
|
||||||
|
|
||||||
|
ADD package.json /
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
ADD zerotier-one /
|
||||||
|
RUN chmod a+x /zerotier-one
|
||||||
|
|
||||||
|
ADD agent.js /
|
||||||
|
ADD main.sh /
|
||||||
|
RUN chmod a+x /docker-main.sh
|
||||||
|
|
||||||
|
CMD ["./docker-main.sh"]
|
6
tests/http/docker-main.sh
Normal file
6
tests/http/docker-main.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
|
||||||
|
|
||||||
|
/zerotier-one -d
|
||||||
|
exec node --harmony /agent.js
|
Loading…
Reference in New Issue
Block a user