Skip to content

Instantly share code, notes, and snippets.

@andreif
Last active January 6, 2024 21:13
Show Gist options
  • Save andreif/d7e9b2f8361b6968c65e9b8fb7f84d59 to your computer and use it in GitHub Desktop.
Save andreif/d7e9b2f8361b6968c65e9b8fb7f84d59 to your computer and use it in GitHub Desktop.
App Engine
runtime: python312
entrypoint: python -m http.server -d /tmp 8080
handlers:
- url: /.*
script: auto
IMG := gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine
GC := docker start gc && docker exec -ti gc gcloud
SERVICE := default
init:
docker run -ti --platform linux/arm64 -v .:/app -w /app --name gc ${IMG} gcloud init
rm:
docker rm -f gc
deploy:
${GC} app deploy -q
logs:
${GC} app logs tail -s ${SERVICE}
browse:
${GC} app browse
delete:
${GC} app services delete ${SERVICE} -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment