Initial demo service for AISP Gitea CI
This commit is contained in:
13
README.md
Normal file
13
README.md
Normal 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`
|
||||
Reference in New Issue
Block a user