Skip to content

Commit 85dfe3e

Browse files
niki4Ivan Nikiforov
andauthored
fix(cloudFoundryDeploy): argument list too long (#5216)
* Increate command line limits * Increase new limits only to cf-cli image * Increase execution environment limits with static values * Remove unsupported operation * Increase docker container limits * Show current environment limits on container start * Clean up * Display environment limits only in verbose mode --------- Co-authored-by: Ivan Nikiforov <[email protected]>
1 parent 93c4ea6 commit 85dfe3e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

cmd/cloudFoundryDeploy_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/metadata/cloudFoundryDeploy.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,11 @@ spec:
370370
containers:
371371
- name: cfDeploy
372372
image: ppiper/cf-cli:latest
373+
options:
374+
- name: --ulimit
375+
value: "stack=67108864:67108864" # Stack Size (in bytes). 64mb
376+
- name: --ulimit
377+
value: "nofile=65536:65536" # Number of Open Files
373378
outputs:
374379
resources:
375380
- name: influx

vars/piperExecuteBin.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ void call(Map parameters = [:], String stepName, String metadataFile, List crede
7878
try {
7979
try {
8080
credentialWrapper(config, credentialInfo) {
81+
if (config.verbose) { // need to be set on step config
82+
echo "[DEBUG] Current environment limits:"
83+
sh "ulimit -a"
84+
}
85+
8186
sh "${piperGoPath} ${stepName}${defaultConfigArgs}${customConfigArg}"
8287
}
8388
} finally {

0 commit comments

Comments
 (0)