Skip to content

Commit

Permalink
fix(cloudFoundryDeploy): argument list too long (#5216)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
niki4 and Ivan Nikiforov authored Dec 27, 2024
1 parent 93c4ea6 commit 85dfe3e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cloudFoundryDeploy_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions resources/metadata/cloudFoundryDeploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions vars/piperExecuteBin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 85dfe3e

Please sign in to comment.