Skip to content

Instantly share code, notes, and snippets.

View davidwtbuxton's full-sized avatar

David Buxton davidwtbuxton

View GitHub Profile
@davidwtbuxton
davidwtbuxton / README.md
Created April 8, 2025 10:01
Minimal Python + App Engine standard deployment
@davidwtbuxton
davidwtbuxton / compose.yaml
Created April 24, 2025 08:18
Docker compose with an nginx proxy for a Python app
# Nginx will listen on localhost:8080, serving static assets and doing gzip compression.
services:
app:
image: python:3.13-alpine
ports: ["8000:8000"]
command: ["python", "-m", "http.server"]
nginx:
build:
@davidwtbuxton
davidwtbuxton / main.py
Created July 15, 2025 08:17
Fetching the deployed files for an App Engine standard app
"""
Install: gcloud SDK, and configure application default credentials.
https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login
Install: python -m pip install click google-api-python-client google-cloud-storage
Usage:
main.py versions --project=my-proj
main.py download --project=my-proj --version=my-version --service=default
@davidwtbuxton
davidwtbuxton / app.yaml
Created July 21, 2025 09:08
App Engine standard + Python redirect app
runtime: python313
handlers:
- url: /.*
script: auto
secure: always
automatic_scaling:
max_instances: 1
@davidwtbuxton
davidwtbuxton / app.yaml
Created September 8, 2025 17:09
App Engine website to test IAP auth for a service account
runtime: python312
automatic_scaling:
max_instances: 2