Log network settings
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
This commit is contained in:
parent
ee0938d7d6
commit
239c324eff
|
@ -56,8 +56,12 @@ module.exports = class Docker {
|
||||||
let inspect = await this.execP(`docker inspect -f "{{json .NetworkSettings}}" ${this.id}`);
|
let inspect = await this.execP(`docker inspect -f "{{json .NetworkSettings}}" ${this.id}`);
|
||||||
let netSettings = JSON.parse(inspect.stdout);
|
let netSettings = JSON.parse(inspect.stdout);
|
||||||
|
|
||||||
if (ci)
|
if (ci) {
|
||||||
|
console.log('Running on CI...');
|
||||||
this.dbConf.host = netSettings.Gateway;
|
this.dbConf.host = netSettings.Gateway;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(netSettings);
|
||||||
|
|
||||||
this.dbConf.port = netSettings.Ports['3306/tcp'][0]['HostPort'];
|
this.dbConf.port = netSettings.Ports['3306/tcp'][0]['HostPort'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue