aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-07-24 21:14:15 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-07-24 21:14:15 +0200
commitc8b5bca6c72dfeea631202250bcffa3cc7069d22 (patch)
tree58e83eccd338d0e80fe0538b9a2fbc22b0afef19 /apps
parent029ffa806227656bb77393a2626aab84f055b06b (diff)
downloadk8s-sandbox-c8b5bca6c72dfeea631202250bcffa3cc7069d22.tar.gz
k8s-sandbox-c8b5bca6c72dfeea631202250bcffa3cc7069d22.tar.bz2
k8s-sandbox-c8b5bca6c72dfeea631202250bcffa3cc7069d22.tar.xz
k8s-sandbox-c8b5bca6c72dfeea631202250bcffa3cc7069d22.zip
wip
Diffstat (limited to 'apps')
-rw-r--r--apps/mi-gateway/Dockerfile6
-rw-r--r--apps/mi-gateway/server.js7
-rw-r--r--apps/mi-processor/Dockerfile6
3 files changed, 10 insertions, 9 deletions
diff --git a/apps/mi-gateway/Dockerfile b/apps/mi-gateway/Dockerfile
index dbb042d..4d5609d 100644
--- a/apps/mi-gateway/Dockerfile
+++ b/apps/mi-gateway/Dockerfile
@@ -2,13 +2,11 @@ FROM node:8
WORKDIR /opt
-COPY package*.json ./
-
RUN apt update && apt -y full-upgrade
RUN apt install -y postgresql-client
+
+COPY package*.json ./
RUN npm install
-# If you are building your code for production
-# RUN npm ci --only=production
COPY . .
diff --git a/apps/mi-gateway/server.js b/apps/mi-gateway/server.js
index 4d2546f..a0f3a04 100644
--- a/apps/mi-gateway/server.js
+++ b/apps/mi-gateway/server.js
@@ -7,7 +7,12 @@ const HOST = '0.0.0.0';
const app = express();
app.get('/', (req, res) => {
- res.send('mi-gateway 2\n');
+ res.set('Content-Type', 'text/plain');
+ res.send('mi-gateway\n' +
+ '$HOSTNAME = ' + process.env["HOSTNAME"] + '\n' +
+ '$PGDATABASE = ' + process.env["PGDATABASE"] + '\n' +
+ '$PGHOST = ' + process.env["PGHOST"] + '\n' +
+ '$PGUSER = ' + process.env["PGUSER"] + '\n');
});
app.listen(PORT, HOST);
diff --git a/apps/mi-processor/Dockerfile b/apps/mi-processor/Dockerfile
index dbb042d..4d5609d 100644
--- a/apps/mi-processor/Dockerfile
+++ b/apps/mi-processor/Dockerfile
@@ -2,13 +2,11 @@ FROM node:8
WORKDIR /opt
-COPY package*.json ./
-
RUN apt update && apt -y full-upgrade
RUN apt install -y postgresql-client
+
+COPY package*.json ./
RUN npm install
-# If you are building your code for production
-# RUN npm ci --only=production
COPY . .