Run container on jenkins network
gitea/salix/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Joan Sanchez 2022-10-05 10:05:01 +02:00
parent f256af3d02
commit 98a2f79691
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ module.exports = class Docker {
let runChown = process.platform != 'linux';
log('Starting container...');
const container = await this.execP(`docker run --env RUN_CHOWN=${runChown} -d ${dockerArgs} salix-db`);
const container = await this.execP(`
docker run
--network jenkins_default
--env RUN_CHOWN=${runChown}
-d ${dockerArgs} salix-db
`);
this.id = container.stdout.trim();
try {