-
Notifications
You must be signed in to change notification settings - Fork 0
docs: documentar validacao com testcontainers e politica de retencao no readme #13
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -125,7 +125,7 @@ side of the mapping in the compose file — the right side is the internal port, | |
| the one the process listens on. | ||
|
|
||
|
|
||
| Official multi-architecture Docker images (`linux/amd64` and `linux/arm64`) are published automatically to the GitHub Container Registry (GHCR): | ||
| Official multi-architecture Docker images (`linux/amd64` and `linux/arm64`) are published automatically to the GitHub Container Registry (GHCR) on pushes to `master` with changes in `src/`. An automated retention policy maintains strictly the last 3 versions: | ||
|
|
||
| ```bash | ||
| docker pull ghcr.io/pathbit/9rtksync:latest | ||
|
|
@@ -337,6 +337,18 @@ make test | |
| PYTHONPATH=src python3 -m unittest discover -s tests -p "test_*.py" | ||
| ``` | ||
|
|
||
| ### Option 3. Automated Docker Image Validation with Testcontainers | ||
|
|
||
| Validates that the generated Docker image boots cleanly, exposes the web dashboard on port 9090, responds on `/login` (200 OK) and `/healthz`, and executes CLI commands: | ||
|
|
||
| ```bash | ||
| # Install package with test dependencies | ||
| pip install ".[test]" | ||
|
|
||
| # Run Testcontainers validation suite | ||
| python3 -m unittest tests/test_container.py -v | ||
|
Comment on lines
+348
to
+349
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎. |
||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## Contributing and Branch Protection | ||
|
|
||
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.
The policy does not maintain strictly three image versions:
.github/workflows/release.ymlconfigureskeep-n-tagged: 3while excludinglatest, and the workflow comments explicitly state thatlatestis outside the count. After several releases, the currentlatestimage plus three additional tagged versions can therefore survive, so this new guarantee understates actual registry retention.Useful? React with 👍 / 👎.