|
@@ -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; \
|
|
n stable; \
|
|
git clone http://infra.flowdat.com:10080/Statsd/mysql-statsd-backend.git /opt/nodejs-statsd-mysql-backend; \
|
|
git clone http://infra.flowdat.com:10080/Statsd/mysql-statsd-backend.git /opt/nodejs-statsd-mysql-backend; \
|
|
cd /opt/nodejs-statsd-mysql-backend; \
|
|
cd /opt/nodejs-statsd-mysql-backend; \
|
|
npm install mysql sequence; \
|
|
npm install mysql sequence; \
|
|
git clone https://github.com/etsy/statsd /opt/statsd; \
|
|
git clone https://github.com/etsy/statsd /opt/statsd; \
|
|
cd /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
|
|
COPY ./backend/mongodb/mongodb.js /opt/statsd/backends/mongodb.js
|
|
ADD ./backend/mongodb/scripts /scripts
|
|
ADD ./backend/mongodb/scripts /scripts
|