Explorar o código

Modified the Dockerfile to get a Node and start the pm2, today isn't working with others S.O only with Debian 9.7, so in this mode I fixed this problem.

Jean Sumara Leopoldo %!s(int64=5) %!d(string=hai) anos
pai
achega
538784ac3c
Modificáronse 2 ficheiros con 4 adicións e 14 borrados
  1. 1 0
      .gitignore
  2. 3 14
      statsd/Dockerfile

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
 **/node_modules
+.idea

+ 3 - 14
statsd/Dockerfile

@@ -1,24 +1,13 @@
-FROM debian:8
+FROM node:10
 
-ENV DEBIAN_FRONTEND noninteractive
-
-RUN echo Acquire::http::Proxy "http://aptcache.infra.flowdat.com/"; > /etc/apt/apt.conf.d/00aptproxy; \
-    printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list; \
-    apt-get update; \
-    apt-get install -yq vim git curl wget build-essential; \
-    curl -sL https://deb.nodesource.com/setup_10.x | bash; \
-    apt-get update; \
-    apt-get install -yq nodejs; \
-    npm install -g n pm2; \
+RUN npm install -g n pm2; \
     n stable; \
     git clone http://infra.flowdat.com:10080/Statsd/mysql-statsd-backend.git /opt/nodejs-statsd-mysql-backend; \
     cd /opt/nodejs-statsd-mysql-backend; \
     npm install mysql sequence; \
     git clone https://github.com/etsy/statsd /opt/statsd; \
     cd /opt/statsd; \
-    npm install --save mongodb@2.2.35 async; \
-    rm /etc/apt/apt.conf.d/00aptproxy; \
-    rm -rf /var/lib/apt/lists/*
+    npm install --save mongodb@2.2.35 async;
 
 COPY ./backend/mongodb/mongodb.js /opt/statsd/backends/mongodb.js
 ADD ./backend/mongodb/scripts /scripts