diff --git a/first-class-pipeline/src/com/freeleaps/devops/DependenciesResolver.groovy b/first-class-pipeline/src/com/freeleaps/devops/DependenciesResolver.groovy index e7161bd5..578a2ec3 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/DependenciesResolver.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/DependenciesResolver.groovy @@ -66,7 +66,7 @@ class DependenciesResolver { if (cachingEnabled) { steps.dir(this.workspace) { steps.cache(maxCacheSize: 512, caches: [[$class: 'ArbitraryFileCache', includes: '**/*', path: '.npm-cache', cacheValidityDecidingFile: 'package-lock.json']]) { - steps.sh "npm install --cache .npm-cache --prefer-offline" + steps.sh "npm install --cache .npm-cache --prefer-offline --no-audit" } } } else { diff --git a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy index a1aa38c4..9031d809 100644 --- a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy +++ b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy @@ -376,14 +376,18 @@ def generateComponentStages(component, configurations) { containerTemplate( name: 'image-builder', image: env.imageBuilderImage, + privileged: true, ttyEnabled: true, command: 'sleep', args: 'infinity', volumeMounts: [ // We need to mount the docker socket to the container to build the image when using dind as image builder - hostPathVolumeMount(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock'), + volumeMount(mountPath: '/var/run/docker.sock', name: 'docker-sock'), ] ) + ], + volumes: [ + hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock') ] ) { node("image-builder-${component.name}") {