Explorar el Código

try to give more memory to the docker build process

ksieren hace 3 años
padre
commit
587af43d35
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -50,7 +50,7 @@ spec:
       steps {
         container('docker') {
           sh "echo ${env.GIT_COMMIT}"
-          sh "docker build --no-cache -t ${imageNameWithTag} . && docker tag ${imageNameWithTag} ${imageNameTagLatest}"
+          sh "docker build --no-cache --memory=2G -t ${imageNameWithTag} . && docker tag ${imageNameWithTag} ${imageNameTagLatest}"
           sh "docker login --username $DOCKERHUB_CREDS_USR --password $DOCKERHUB_CREDS_PSW && docker push ${imageNameWithTag} && docker push ${imageNameTagLatest}"
           sh "docker run --rm --entrypoint tar ${imageNameWithTag} cCj /var/www . > ${project}-${imageTag}.tar.bz2"
           archiveArtifacts "${project}-${imageTag}.tar.bz2"