Initial demo service for AISP Gitea CI

This commit is contained in:
2026-10-23 08:07:44 +00:00
commit 2c21665d0e
4 changed files with 71 additions and 0 deletions

13
README.md Normal file
View File

@@ -0,0 +1,13 @@
# aisp-ci-demo
Service mẫu để thử luồng Gitea CI của AISP: kết nối repository → scan Dockerfile → build →
Release → deploy.
- `GET /` trả JSON gồm `version`, `message` (từ biến `APP_MESSAGE`) và hostname của Pod.
- `GET /healthz` dùng cho readiness check.
- Lắng nghe cổng `8080`, chạy non-root (UID 10001).
Thử thay đổi: sửa `VERSION` trong `app.py`, commit và push, rồi build lại trên console để thấy
phiên bản mới sau khi deploy.
Chạy local: `docker build -t aisp-ci-demo . && docker run --rm -p 8080:8080 aisp-ci-demo`