aboutsummaryrefslogtreecommitdiff
path: root/mi-processor
diff options
context:
space:
mode:
Diffstat (limited to 'mi-processor')
-rw-r--r--mi-processor/Dockerfile2
-rw-r--r--mi-processor/server.js19
2 files changed, 19 insertions, 2 deletions
diff --git a/mi-processor/Dockerfile b/mi-processor/Dockerfile
index d657cc3..dbb042d 100644
--- a/mi-processor/Dockerfile
+++ b/mi-processor/Dockerfile
@@ -4,6 +4,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
diff --git a/mi-processor/server.js b/mi-processor/server.js
index b739070..8b7c9d8 100644
--- a/mi-processor/server.js
+++ b/mi-processor/server.js
@@ -7,10 +7,25 @@ const HOST = '0.0.0.0';
const app = express();
app.get('/', (req, res) => {
- res.send('mi-server\n');
+ res.send('mi-processor\n');
});
app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);
-console.log('Environment', process.env)
+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);
+}