4592-jenkins_tests #1075

Merged
joan merged 27 commits from 4592-jenkins_tests into dev 2022-10-05 12:40:29 +00:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit 239c324eff - Show all commits

View File

@ -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'];
}