Open evil-shrike opened 1 year ago
When Cloud Run Button runs the script that runs gsutil, does it exit with an error? Or does it work except without correct stdout handling?
It's hard to tell because both prebuild.sh and setup.sh just exit - I added echoing after calls and they didn't appear in the output:
I wonder if we can get more verbose output from your script. Also, it might be worth a small test to see how Cloud Run Button handles scripts that exit with 0 and non-zero codes, and where stderr goes. As I'm not sure currently how these are handled.
When a prebuild hook execute
gsutil
with-m
(multiprocessing) option it exits. Here's a reproducing demo: https://github.com/evil-shrike/cloud-run-button-test2.gitthe script has the following lines:
and when executed by cloudshell_open we won't see the "Application files have been copied" output. Needless to say that normally when execute manually from within Cloud Shell terminal it works fine.
outout:
If I remove
-m
option from gsutil then it starts working as expected.The issue make deploying applications via Cloud Run Button very cumbersome.