Skip to content

fix(mvn): provide python command in appengine image#1105

Open
Haihan-Jiang wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
Haihan-Jiang:codex/mvn-appengine-python-shim
Open

fix(mvn): provide python command in appengine image#1105
Haihan-Jiang wants to merge 1 commit into
GoogleCloudPlatform:masterfrom
Haihan-Jiang:codex/mvn-appengine-python-shim

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

What changed

Install python-is-python3 in the mvn:appengine builder image so scripts that invoke python resolve to Python 3.

Why

The App Engine Maven plugin downloads and installs the Google Cloud SDK. Recent SDK installation paths still invoke python, while the current image only installs python3. That causes mvn:appengine builds to fail with python: command not found.

Fixes #1056.

Validation

  • git diff --check
  • Verified the target base image can install python3 python-is-python3 and then exposes both commands:
    • command -v python -> /usr/bin/python
    • python --version -> Python 3.10.12
    • command -v python3 -> /usr/bin/python3
    • python3 --version -> Python 3.10.12
  • Started a local docker build -f mvn/Dockerfile.appengine ...; it passed the previous python: command not found failure point and reached gcloud components install app-engine-java. I stopped it later during Cloud SDK post-processing because this local Mac was running the amd64 image under arm64 emulation.

@Haihan-Jiang Haihan-Jiang marked this pull request as ready for review May 24, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gcr.io/cloud-builders/mvn:appengine : Unable to find Python

1 participant