diff --git a/cmd/cloudFoundryDeploy_generated.go b/cmd/cloudFoundryDeploy_generated.go index 51c4c51d7..3c5b77499 100644 --- a/cmd/cloudFoundryDeploy_generated.go +++ b/cmd/cloudFoundryDeploy_generated.go @@ -565,7 +565,7 @@ func cloudFoundryDeployMetadata() config.StepData { }, }, Containers: []config.Container{ - {Name: "cfDeploy", Image: "ppiper/cf-cli:latest"}, + {Name: "cfDeploy", Image: "ppiper/cf-cli:latest", Options: []config.Option{{Name: "--ulimit", Value: "stack=67108864:67108864"}, {Name: "--ulimit", Value: "nofile=65536:65536"}}}, }, Outputs: config.StepOutputs{ Resources: []config.StepResources{ diff --git a/resources/metadata/cloudFoundryDeploy.yaml b/resources/metadata/cloudFoundryDeploy.yaml index c49a5c5a3..921000fdd 100644 --- a/resources/metadata/cloudFoundryDeploy.yaml +++ b/resources/metadata/cloudFoundryDeploy.yaml @@ -370,6 +370,11 @@ spec: containers: - name: cfDeploy image: ppiper/cf-cli:latest + options: + - name: --ulimit + value: "stack=67108864:67108864" # Stack Size (in bytes). 64mb + - name: --ulimit + value: "nofile=65536:65536" # Number of Open Files outputs: resources: - name: influx diff --git a/vars/piperExecuteBin.groovy b/vars/piperExecuteBin.groovy index 311242c81..08dec7400 100644 --- a/vars/piperExecuteBin.groovy +++ b/vars/piperExecuteBin.groovy @@ -78,6 +78,11 @@ void call(Map parameters = [:], String stepName, String metadataFile, List crede try { try { credentialWrapper(config, credentialInfo) { + if (config.verbose) { // need to be set on step config + echo "[DEBUG] Current environment limits:" + sh "ulimit -a" + } + sh "${piperGoPath} ${stepName}${defaultConfigArgs}${customConfigArg}" } } finally {