Add [Admin] Course container setup [WIP]

manuel 2025-09-14 19:56:37 +08:00
parent 0656dd5c42
commit 5a0c863669

@ -0,0 +1,15 @@
# Course container setup
## Container deployment
1. Create a new `bot-${REPO_OWNER_LOWER}` user on Gitea
2. Generate a new token for `bot-${REPO_OWNER_LOWER}` with permissions:
- issue `rw`
- repository `rw`
- organizaion `r`
3. On `${REPO_OWNER_LOWER}-joj` repo settings, add the gitea token of `bot-${REPO_OWNER_LOWER}` as value to `Settings->Actions->Secrets->Add Secret`, with name `TEAPOT_GITEA_TOKEN`
4. Edit `root/deploy.conf` based on needed software/tools
5. Deploy a new container for the course
- create a zfs volume
- setup permissions
- deploy