diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-28 15:08:00 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-28 15:08:00 -0700 |
commit | 1f5ef968cff51721d97587cb1c5402c988c92d5e (patch) | |
tree | 2b341cdc24e173e8f47992a506371db6c217b878 /tests/http | |
parent | 68d6d3c4ff4d3921408f7d9bab3e31e0e028a871 (diff) | |
download | infinitytier-1f5ef968cff51721d97587cb1c5402c988c92d5e.tar.gz infinitytier-1f5ef968cff51721d97587cb1c5402c988c92d5e.zip |
Test need a more recent version of NodeJS so update Dockerfile.
Diffstat (limited to 'tests/http')
-rw-r--r-- | tests/http/Dockerfile | 3 | ||||
-rw-r--r-- | tests/http/agent.js | 2 | ||||
-rwxr-xr-x | tests/http/docker-main.sh | 3 | ||||
-rw-r--r-- | tests/http/nodesource-el.repo | 6 |
4 files changed, 12 insertions, 2 deletions
diff --git a/tests/http/Dockerfile b/tests/http/Dockerfile index 7bba2fc0..e19b3fee 100644 --- a/tests/http/Dockerfile +++ b/tests/http/Dockerfile @@ -4,7 +4,8 @@ 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 +ADD nodesource-el.repo /etc/yum.repos.d/nodesource-el.repo +RUN yum -y update && yum install -y nodejs && yum clean all RUN mkdir -p /var/lib/zerotier-one RUN mkdir -p /var/lib/zerotier-one/networks.d diff --git a/tests/http/agent.js b/tests/http/agent.js index 061c7ba7..8b1cf512 100644 --- a/tests/http/agent.js +++ b/tests/http/agent.js @@ -211,7 +211,7 @@ app.get('/',function(req,res) { return res.status(200).send(payload); }); -var expressServer = app.listen(AGENT_PORT,agentIdToIp(thisAgentId),function () { +var expressServer = app.listen(AGENT_PORT,function () { registerAndGetPeers(function(err,peers) { if (err) { console.error('FATAL: unable to contact or query server: '+err.toString()); diff --git a/tests/http/docker-main.sh b/tests/http/docker-main.sh index ad80af0c..72023668 100755 --- a/tests/http/docker-main.sh +++ b/tests/http/docker-main.sh @@ -8,4 +8,7 @@ while [ ! -d "/proc/sys/net/ipv6/conf/zt0" ]; do sleep 0.25 done +sleep 2 + exec node --harmony /agent.js >>agent.out 2>&1 +#exec node --harmony /agent.js diff --git a/tests/http/nodesource-el.repo b/tests/http/nodesource-el.repo new file mode 100644 index 00000000..b785d3d0 --- /dev/null +++ b/tests/http/nodesource-el.repo @@ -0,0 +1,6 @@ +[nodesource] +name=Node.js Packages for Enterprise Linux 7 - $basearch +baseurl=https://rpm.nodesource.com/pub_4.x/el/7/$basearch +failovermethod=priority +enabled=1 +gpgcheck=0 |