build: pin swag CLI to v1.16.6 and oauth2-proxy to v7.15.3, add backend/.dockerignore#8989
Open
DoDiODev wants to merge 1 commit into
Open
build: pin swag CLI to v1.16.6 and oauth2-proxy to v7.15.3, add backend/.dockerignore#8989DoDiODev wants to merge 1 commit into
DoDiODev wants to merge 1 commit into
Conversation
…r context Make the backend container build inputs reproducible and shrink the Docker build context: - Align the swag CLI pin to v1.16.6 across backend/Makefile, backend/Dockerfile and backend/Dockerfile.local so local, CI and image builds generate Swagger docs with the same tool version. - Pin the oauth2-proxy dev auth proxy image to v7.15.3-amd64 in both docker-compose-dev-mysql.yml and docker-compose-dev-postgresql.yml. - Add backend/.dockerignore to keep regenerated build artifacts (bin/, mocks/, logs/, Python venv/build output, coverage files and OS junk) out of the build context. Source under python/ is retained. No functional/runtime code changes. Signed-off-by: DoDiODev <DoDiDev@proton.me>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Make the backend container build inputs reproducible and shrink the Docker
build context. This is a low-risk infrastructure/tooling change with no
functional or runtime code changes.
backend/Makefile,backend/Dockerfileand
backend/Dockerfile.local, so local, CI and image builds all generateSwagger docs with the same tool version (previously v1.16.1).
docker-compose-dev-mysql.ymlanddocker-compose-dev-postgresql.yml(previously v7.4.0-amd64).
backend/.dockerignorekeeping regenerated build artifacts out ofthe Docker build context:
bin/,mocks/,logs/, Python venv/buildoutput, coverage files and OS junk. Source under
python/is retained.Explicitly out of scope
Dockerfile.server/ build-cache restructuring.Automated tests / checks
git diff --checkclean (no whitespace errors).docker compose -f docker-compose-dev-mysql.yml config -qand thePostgreSQL equivalent validate successfully.
docker build --checkforbackend/Dockerfileandbackend/Dockerfile.localreport no errors (only pre-existingFromAsCasingstyle warnings, unrelated to this change).swag initwith v1.16.6 regenerates Swagger docs with no additionalgenerated diff.
Manual testing
the new
.dockerignorewhile retainingpython/sources.Rollback
Revert this single commit; it only changes pinned tool/image versions and
adds a
.dockerignore.Known follow-ups / dependencies
Independent of other version-upgrade PRs. MySQL, PostgreSQL, Grafana, Python
and frontend bumps are handled in separate PRs.