From 43271d41a94822826d31b2fafa8dd1014f6727f2 Mon Sep 17 00:00:00 2001 From: vyas-shyam Date: Tue, 19 Nov 2024 17:48:21 +0530 Subject: [PATCH 1/2] dockerfile update to use node:18.16.1 image instead of node:18.16.1-alpine --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b45efb99..9d66d123 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ ## global args ARG NODE_ENV=production -FROM node:18.16.1-alpine -SHELL [ "/bin/sh", "-cex" ] +FROM node:18.16.1 +SHELL [ "/bin/bash", "-cex" ] ## ENVs ENV NODE_ENV=${NODE_ENV} From fe3653109d2d110a476c547d6be6b0cf665ce23a Mon Sep 17 00:00:00 2001 From: vyas-shyam Date: Tue, 19 Nov 2024 17:48:31 +0530 Subject: [PATCH 2/2] make collectorSourcing and serviceValidatorSourcing configurable using env var --- src/config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config.ts b/src/config.ts index a633cf32..77d79e51 100644 --- a/src/config.ts +++ b/src/config.ts @@ -184,12 +184,12 @@ export const CONFIG: Config = { isRemoteLocalNetwork: false, nodeExternalIpForRemoteLocalNetwork: '127.0.0.1', collectorSourcing: { - enabled: false, - collectorApiServerUrl: 'http://0.0.0.0:6001', + enabled: Boolean(process.env.COLLECTOR_SOURCING_ENABLED) || false, + collectorApiServerUrl: process.env.COLLECTOR_API_SERVER_URL || 'http://0.0.0.0:6001', }, serviceValidatorSourcing: { - enabled: false, - serviceValidatorUrl: 'http://0.0.0.0:9001', + enabled: Boolean(process.env.SERVICE_VALIDATOR_SOURCING_ENABLED) || false, + serviceValidatorUrl: process.env.SERVICE_VALIDATOR_URL || 'http://0.0.0.0:9001', }, ServicePointsPerSecond: 200,