Test need a more recent version of NodeJS so update Dockerfile.

This commit is contained in:
Adam Ierymenko 2015-10-28 15:08:00 -07:00
parent 68d6d3c4ff
commit 1f5ef968cf
4 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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());

View File

@ -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

View File

@ -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