Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ludoch/1b5bc31cbfebd231a42482e52cf7038e to your computer and use it in GitHub Desktop.
Save ludoch/1b5bc31cbfebd231a42482e52cf7038e to your computer and use it in GitHub Desktop.
# Requirements: pack and Cloud SDK installed and configured for a given project
# Got to a Maven source directory containing a pom.xml
# We will create and public for this example the image tagged gcr.io/openjdk11/fromgae
pack build --publish gcr.io/openjdk11/fromgae --builder gcr.io/gae-runtimes/buildpacks/java11/builder:argo_current --run-image gcr.io/gae-runtimes/buildpacks/java11/run:java11_20200217_11_0_RC00
# Deploy a Cloud run from the new image gcr.io/openjdk11/fromgae which is now in gcr repo
gcloud run deploy my-backend --image=gcr.io/openjdk11/fromgae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment