From 4c2d094a4afabdbf8e1924e81064e1e83193eef9 Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Sat, 14 Nov 2026 13:25:57 +0100 Subject: [PATCH] LEAS-2795 mc: PINS, ignore files, README --- .dockerignore | 3 +++ .gitignore | 2 ++ vezha/PINS | 7 +++++++ vezha/README.md | 35 ++++++++++++++++++++++++++++++++--- 4 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 .dockerignore create mode 100644 vezha/PINS diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..b07c7dfb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git +.gitea +out diff --git a/.gitignore b/.gitignore index 4f00cd9a..03c4a0ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /src/ +/out/ +/vezha/SOURCE diff --git a/vezha/PINS b/vezha/PINS new file mode 100644 index 00000000..d6c9ff2e --- /dev/null +++ b/vezha/PINS @@ -0,0 +1,7 @@ +UPSTREAM_RELEASE=RELEASE.2025-08-13T08-35-41Z +UPSTREAM_COMMIT=7394ce0dd2a80935aded936b09fa12cbb3cb8096 +MODULE=github.com/minio/mc +MODULE_VERSION=v0.0.0-20250813083541-7394ce0dd2a8 +MODULE_SUM=h1:9tuRE4iEaDkuxatxe7pddYYh1SX5mT0/D0haofZFeTY= +GO_BUILDER=golang:1.27.2-trixie@sha256:47667934874913a449b96faa7ef4777fa285d9ec29126ee80ed61c45b7cccf0e +BASE_IMAGE=busybox:1.37.0-musl@sha256:f6a95d611e0a8780fabdb2aec43e31275b2720dfefa3e41b16835bfc42454478 diff --git a/vezha/README.md b/vezha/README.md index bf80ea5a..d927e1fb 100644 --- a/vezha/README.md +++ b/vezha/README.md @@ -1,5 +1,34 @@ # vezha build recipe for minio/mc -This branch carries the build recipe for the container image `git.vezha.io/para/minio-mc`. -The upstream source is minio/mc (AGPL-3.0), imported unmodified with all its tags. -The recipe is built up by the commits on the development branch and fast-forwarded here once it is green. +This branch builds the container image `git.vezha.io/para/minio-mc` from the unmodified upstream source of minio/mc, which is archived upstream and no longer publishes images. +The repository is an imported copy of minio/mc with all its tags. The `vezha` branch is an orphan branch that holds only the recipe. + +## Licence and source offer (AGPL-3.0) + +The image ships the unmodified mc binary, licensed under the GNU Affero General Public License v3. +The complete corresponding source is the tag named in `PINS` (`UPSTREAM_RELEASE`) in this public repository: +`https://git.vezha.io/para/mc/src/tag/`. +Each image carries `/licenses/LICENSE`, `/licenses/CREDITS` and `/licenses/SOURCE`; `SOURCE` names the upstream URL, the release and commit, the tag URL, the recipe commit, the builder image digest, the Go module version and sum, and the sha256 of the binary. +Nothing in this recipe patches the upstream source. A patch would make the binary a modified version and would need its own source offer. + +## Files + +- `PINS`: every pinned input. Builds refuse a missing, empty, duplicated or unknown key. +- `Dockerfile`: stages `pins`, `build` and the final image; no BuildKit-only syntax. +- `gates.sh`, `check-image.sh`, `smoke.sh`: the checks the workflow runs; `SOURCE.tmpl` is rendered into `/licenses/SOURCE`. +- `.gitea/workflows/release.yml`: verify on every push, publish on `vezha`. + +## Image notes + +The image runs as root and has no HEALTHCHECK: it is a run-to-completion CLI. +The base image is BusyBox pinned by digest; the CA bundle is copied from the Go builder image. + +## Release procedure + +A run on a branch other than `vezha` builds and verifies only and reads no secret. A run on `vezha` also publishes `git.vezha.io/para/minio-mc:`, where the tag is `--r`. +Tags are write-once, there is no `latest`, and consumers pin by digest. The run prints one line per image: + +`PUBLISHED git.vezha.io/para/minio-mc@sha256: tag= binary-sha256=` + +To bump a pin, edit `PINS` on a branch, let the verify run go green, and fast-forward `vezha`; the new commit publishes a new tag. +The publish step needs the repository secret `REGISTRY_TOKEN` (a Gitea token with the `write:package` scope) and optionally `REGISTRY_USER`.