-
-
Notifications
You must be signed in to change notification settings - Fork 1
Add CI rollout baseline #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ohmyfelix
wants to merge
7
commits into
dockette:master
Choose a base branch
from
ohmyfelix:chore/ci-rollout-baseline
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4bcb386
chore: add CI rollout baseline
ohmyfelix 7911291
chore: align Makefile Docker variables
ohmyfelix c8e1383
chore: place PHONY declarations above targets
ohmyfelix 12c9a18
chore: add AI agent instructions
ohmyfelix a4c42f7
chore: specialize AI agent instructions
ohmyfelix f84f0a0
chore: document S3 test environment
ohmyfelix 61848fe
ci: gate publish (build) job to master ref (defense-in-depth)
f3l1x File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,13 @@ | ||
| LITESTREAM_TEMPLATE=basic | ||
| LITESTREAM_DATA_DIR=/data | ||
| LITESTREAM_TEMPLATE=s3 | ||
| LITESTREAM_DB_FILE=/app/data/kuma.db | ||
| LITESTREAM_S3_ENDPOINT=yourbucket.minio.tld | ||
| LITESTREAM_S3_REGION=foobar | ||
| LITESTREAM_S3_BUCKET=foobar | ||
| LITESTREAM_S3_PATH=foobar | ||
| LITESTREAM_S3_ACCESS_KEY_ID=foobar | ||
| LITESTREAM_S3_SECRET_ACCESS_KEY=foobarbaz | ||
| LITESTREAM_RETENTION=24h | ||
| LITESTREAM_RETENTION_CHECK_INTERVAL=1h | ||
| LITESTREAM_SNAPSHOT_INTERVAL=10s | ||
| LITESTREAM_SYNC_INTERVAL=1s | ||
| LITESTREAM_VALIDATION_INTERVAL=12h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # AGENTS.md | ||
|
|
||
| ## Project | ||
|
|
||
| Dockette image for Uptime Kuma with optional Litestream support for streaming SQLite backups to remote storage such as S3. | ||
|
|
||
| ## Image | ||
|
|
||
| - Docker image: `dockette/kumatron`. | ||
| - Build context is the repository root and `Dockerfile` is the only image definition. | ||
| - Runtime base is `louislam/uptime-kuma:1.23.16-debian`. | ||
| - Builder stages download Litestream `v0.3.13` and `envsubst`, then copy them into the runtime image. | ||
| - Runtime data defaults to `DATA_DIR=./data/`; `/app/data` is created by the image. | ||
| - GitHub Actions publishes `latest` and `20250502` from the root context. | ||
|
|
||
| ## Commands | ||
|
|
||
| - `make build` builds `dockette/kumatron:${DOCKER_TAG}`. | ||
| - `make test` starts `kumatron-test` and probes the app with Node over `DOCKER_TEST_PORT`. | ||
| - `make run` starts the image on `${DOCKER_TEST_PORT}:3001` as container `kumatron`. | ||
| - `make enter` opens a shell in the running `kumatron` container. | ||
| - `make test-s3` runs with Litestream S3 environment variables from `.env.dist` and optional `.env`. | ||
|
|
||
| ## Testing | ||
|
|
||
| - Use `make -n build test run` to dry-run the default commands before changing build logic. | ||
| - A real `make test` needs Docker and a built local image; it removes `kumatron-test` on success or failure. | ||
| - Litestream S3 testing needs valid `.env` values and should not commit secrets. | ||
|
|
||
| ## Guidelines | ||
|
|
||
| - Keep `Dockerfile`, `entrypoint.sh`, `litestream/`, `Makefile`, README examples, and `.github/workflows/docker.yml` aligned. | ||
| - Prefer `DOCKER_*` names for Docker-related Makefile variables. | ||
| - Place `.PHONY: <target>` directly above each Makefile target. | ||
| - Preserve Litestream environment variable names because README examples and templates depend on them. | ||
| - Do not introduce unrelated formatting or structural changes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| @AGENTS.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplify it, oneline, just test if webserver is working