LEAS-2795 mc: PINS, ignore files, README
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
.git
|
||||
.gitea
|
||||
out
|
||||
@@ -1 +1,3 @@
|
||||
/src/
|
||||
/out/
|
||||
/vezha/SOURCE
|
||||
|
||||
@@ -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
|
||||
+32
-3
@@ -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/<UPSTREAM_RELEASE>`.
|
||||
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:<tag>`, where the tag is `<lowercased UPSTREAM_RELEASE>-<first 12 of UPSTREAM_COMMIT>-r<first 8 of the recipe commit>`.
|
||||
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:<digest> tag=<tag> binary-sha256=<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`.
|
||||
|
||||
Reference in New Issue
Block a user