[ci skip] f1-stream: replace Go service with Python/FastAPI skeleton
Replaces the existing Go-based f1-stream service with a new Python/FastAPI backend as the foundation for the rebuilt F1 streaming aggregation service. - New FastAPI backend with health and root endpoints - Python 3.13 slim Dockerfile (replaces Go multi-stage build) - Updated Terraform deployment (port 8000, reduced resources) - Buildx-based redeploy.sh with --platform linux/amd64 - Added Woodpecker CI pipeline for automated builds - Removed all old Go source, node_modules, static assets
This commit is contained in:
parent
c665544f41
commit
f423a4d60c
80 changed files with 81 additions and 13879 deletions
19
stacks/f1-stream/files/backend/main.py
Normal file
19
stacks/f1-stream/files/backend/main.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI(title="F1 Streams")
|
||||
|
||||
|
||||
@app.get("/health")
|
||||
async def health():
|
||||
return {"status": "ok"}
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {"service": "f1-streams", "version": "2.0.1"}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
|
||||
uvicorn.run(app, host="0.0.0.0", port=8000)
|
||||
2
stacks/f1-stream/files/backend/requirements.txt
Normal file
2
stacks/f1-stream/files/backend/requirements.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
fastapi==0.115.0
|
||||
uvicorn[standard]
|
||||
Loading…
Add table
Add a link
Reference in a new issue