aboutsummaryrefslogtreecommitdiff
path: root/mi-processor
diff options
context:
space:
mode:
Diffstat (limited to 'mi-processor')
-rw-r--r--mi-processor/Dockerfile16
-rw-r--r--mi-processor/package.json11
-rw-r--r--mi-processor/server.js31
3 files changed, 0 insertions, 58 deletions
diff --git a/mi-processor/Dockerfile b/mi-processor/Dockerfile
deleted file mode 100644
index dbb042d..0000000
--- a/mi-processor/Dockerfile
+++ /dev/null
@@ -1,16 +0,0 @@
-FROM node:8
-
-WORKDIR /opt
-
-COPY package*.json ./
-
-RUN apt update && apt -y full-upgrade
-RUN apt install -y postgresql-client
-RUN npm install
-# If you are building your code for production
-# RUN npm ci --only=production
-
-COPY . .
-
-EXPOSE 8080
-CMD [ "npm", "start" ]
diff --git a/mi-processor/package.json b/mi-processor/package.json
deleted file mode 100644
index 2deee39..0000000
--- a/mi-processor/package.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "name": "mi-gateway",
- "version": "1.0.0",
- "main": "server.js",
- "scripts": {
- "start": "node server.js"
- },
- "dependencies": {
- "express": "^4.16.1"
- }
-}
diff --git a/mi-processor/server.js b/mi-processor/server.js
deleted file mode 100644
index 8b7c9d8..0000000
--- a/mi-processor/server.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-
-const express = require('express');
-
-const PORT = 8080;
-const HOST = '0.0.0.0';
-
-const app = express();
-app.get('/', (req, res) => {
- res.send('mi-processor\n');
-});
-
-app.listen(PORT, HOST);
-console.log(`Running on http://${HOST}:${PORT}`);
-
-var keys = [];
-for(var key in process.env) {
- if (key.startsWith("npm")) {
- continue;
- }
-
- keys[keys.length] = key;
-}
-keys.sort()
-
-console.log("ENV");
-for (var idx in keys) {
- const key = keys[idx];
- const value = process.env[key];
- console.log(" " + key + "=" + value);
-}