312c1860e8b39d012e7eff4de68d5cc0bb21a5cc
Strategy Platform Demo Repo
Minimal strategy repository for testing the platform Kaniko build and deployment flow.
It satisfies the runtime contract from the parent README:
- Root-level
Dockerfile - Listens on port
8080 - Exposes
GET /health - Reads
TASK_TYPE,GPU_TYPE,FRAMEWORK, andEXTERNAL_SERVICE_TOKEN - Handles
SIGTERMfor graceful shutdown
Local Run
python main.py
curl http://localhost:8080/health
curl http://localhost:8080/
Build Locally
docker build \
--build-arg TASK_TYPE=validation \
--build-arg GPU_TYPE=amd64 \
--build-arg FRAMEWORK=pytorch \
-t strategy-demo:v1.0.0 .
docker run --rm -p 8080:8080 strategy-demo:v1.0.0
Platform Test
Push this directory to Gitea and keep the v1.0.0 tag. Then create a strategy with:
{
"name": "strategy-demo",
"repo_url": "https://<your-gitea-host>/<user>/strategy-demo",
"tag": "v1.0.0",
"task_type": "validation",
"gpu_type": "amd64",
"framework": "pytorch"
}
Description
Languages
Python
88.6%
Dockerfile
11.4%