FastAPI service and website for NHL title belt app (see title-belt-nhl).
https://title-belt-app-65075575114.us-east1.run.app/
/docs
for swagger docshttps://docs.render.com/deploy-fastapi
poetry install --no-root
poetry run uvicorn main:app --host 0.0.0.0 --port $PORT --reload
So we can do a cool website that shows us the belt holder and stuff.
Deploys an app from a docker image, which we need to build (from Dockerfile
) and push to a registry (we use GCP Artifact Registry).
gcloud auth configure-docker $REGION-docker.pkg.dev # (one time)
gcloud auth login --update-adc # expires periodically (24 hours?)
gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://$REGION-docker.pkg.dev # expires periodically
docker build . -t <image>
docker push <image>
gcloud run deploy title-belt-app --image <image>