MarkEdmondson1234 / googleCloudRunner

Easy R scripts on Google Cloud Platform via Cloud Run, Cloud Build and Cloud Scheduler
https://code.markedmondson.me/googleCloudRunner/
Other
81 stars 26 forks source link

CloudRun fails with ERROR: expected one argument #141

Closed engti closed 2 years ago

engti commented 2 years ago

Issue, when running _cr_setuptest() I get the following error

image

And when I looked at the GCP logs I found the following:

Step #0 - "deploy cloudrun": Digest: sha256:fdd975aa13e7321672d13909089a33160ad1e3e25a5ee9c00dc9a91213cd93c1 Step #0 - "deploy cloudrun": Status: Downloaded newer image for gcr.io/google.com/cloudsdktool/cloud-sdk:alpine Step #0 - "deploy cloudrun": gcr.io/google.com/cloudsdktool/cloud-sdk:alpine Step #0 - "deploy cloudrun": ERROR: (gcloud.run.deploy) argument --image: expected one argument Step #0 - "deploy cloudrun": Usage: gcloud run deploy [[SERVICE] --namespace=NAMESPACE] [optional flags]

MarkEdmondson1234 commented 2 years ago

Hmm thanks will check it, perhaps the gcloud run has changed from beta.

MarkEdmondson1234 commented 2 years ago

Thanks for the report, I was able to replicate it.

For some reason the image name was not coming back in the builds return object, so I've put in a more reliable method of determining the image name. Running cr_setup_test() option 3 now succeeds with the GitHub version installed via remotes::install_github("MarkEdmondson1234/googleCloudRunner") and in the next CRAN release.