How I can run some gcp shell command (like: helm install . -n test --namespace=my-namespace -f ./configs/my-conf.yaml
) inside my cloud function?
Asked
Active
Viewed 1,776 times
3

Ted
- 1,682
- 3
- 25
- 52
-
Any reason you can't / don't want to use cloud run for this? You can run docker images of choice which should let you run shell commands. – Parth Mehta Dec 16 '19 at 12:06
-
Yes, architectural reason, I need to use Cloud Functions and helm – Ted Dec 16 '19 at 12:18
-
The only way I can think of you can achieve this is to run it through supported programming languages. This thread seems to explain how to run shell commands through nodejs: https://stackoverflow.com/questions/44647778/how-to-run-shell-script-file-using-nodejs – Parth Mehta Dec 16 '19 at 12:24
-
Howdy Ted ... might you be able to elaborate on "architectural reason"? I also am sensing a better match to Cloud Run for the described need and would like to understand the architectural need for Cloud Functions over Cloud Run. – Kolban Dec 16 '19 at 15:35
1 Answers
0
Hey have you thought about setting pyhelm in Python it as a dependency of the Cloud Function and then using it to do what you need via code? Would that work for your use case or am I missing something?
Does pyhelm not let you do the packages installation that you need?
Let us know.

Stefan G.
- 890
- 5
- 10