Closed marcelogp closed 5 years ago
That's interesting, let me see if the cloud build or cloud sdk team has any insights. @ImJasonH, @vilasj
In the meantime if you want to inspect the build container on your local machine:
$ docker pull gcr.io/cloud-builders/gradle
$ docker run -it --entrypoint=/bin/bash gcr.io/cloud-builders/gradle
python appears to be in: /usr/bin/python*
Yeah, I checked the image and there's only python3 installed.
Yeah you're going to have to put python2.7 in there yourself for now. But I would file a bug against the cloud-build repository asking for python2.7 in their base images (https://github.com/GoogleCloudPlatform/cloud-builders)
$ apt-get update
$ apt-get -y install python2.7
This worked for me (haven't tried in a cloudbuild.yaml file though)
@marcelogp I'm going to go ahead and close this here for now. Please re-open or create a bug on the cloud-builders page if you still need assistance.
I'm writing a simple cloudbuild.yaml file to deploy my spring boot server:
I'm using appengine-gradle-plugin:2.0.0-rc6 since I need the gcloud SDK. However, the build fails with:
I think this is related to python2 vs. python3 for gcloud. I tried setting CLOUDSDK_PYTHON but I don't know where/if python2 is installed. Any ideas?