Last active
January 6, 2024 21:13
-
-
Save andreif/d7e9b2f8361b6968c65e9b8fb7f84d59 to your computer and use it in GitHub Desktop.
App Engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runtime: python312 | |
entrypoint: python -m http.server -d /tmp 8080 | |
handlers: | |
- url: /.* | |
script: auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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