From 239c324eff255ddce1918574342552a738b09875 Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 5 Oct 2022 11:03:48 +0200 Subject: [PATCH] Log network settings --- db/docker.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/db/docker.js b/db/docker.js index 32fec0038..29ed6d25d 100644 --- a/db/docker.js +++ b/db/docker.js @@ -56,8 +56,12 @@ module.exports = class Docker { let inspect = await this.execP(`docker inspect -f "{{json .NetworkSettings}}" ${this.id}`); let netSettings = JSON.parse(inspect.stdout); - if (ci) + if (ci) { + console.log('Running on CI...'); this.dbConf.host = netSettings.Gateway; + } + + console.log(netSettings); this.dbConf.port = netSettings.Ports['3306/tcp'][0]['HostPort']; }