Repository navigation
Conversation
…ntainerd and runc from their own releases download.docker.com's `docker-cli_` / `docker-engine_` archives (and its flat Windows zips) no longer bundle containerd or runc, so `versions.sh` now scrapes the `CONTAINERD_VERSION` and `RUNC_VERSION` series moby pins in its Dockerfile, resolves the latest patch release of each, and records per-architecture URLs and checksums for everything in `versions.json`. Architecture selection moves into a new `generate-stackbrew-library.jq`, so each variant is limited to the architectures that have everything it needs. - Install the engine from `docker-engine_` (just `bin`), and only `ctr` and the shim from containerd's static tarball plus `runc`, each in its own checksummed `RUN` (the cli image takes `bin/docker` from `docker-cli_`) - Expand the flat Windows cli zip as-is into `Program Files\Docker` with `Docker\bin` on PATH, which leaves `cli-plugins` right where the CLI looks for it - Fetch rootless extras for every architecture that has them instead of only amd64 and arm64v8 (ppc64le and s390x join dind-rootless), and let the new intersection keep arm32 out of dind (containerd has no arm32 builds) - Always verify downloads with `sha256sum -c` (`download()` used to skip it for rootless extras because not every architecture has them), and make missing or malformed checksums fatal - Fail loudly when amd64 or arm64v8 is missing any artifact, instead of quietly publishing less - Share the release-scraping, checksum-parsing, and artifact-fetching code in `versions.sh` instead of repeating it per project, with explicit error handling that no longer depends on `errexit` inside command substitutions Drop the legacy `dockerUrl` fallbacks and the dead `29.8.2` branches now that 29.10.x is the only version here. Assisted-By: "claude my eyes right out"
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.
(probably somewhat over-engineered follow-up to #591 (comment))
download.docker.com's
docker-cli_/docker-engine_archives (and its flat Windows zips) no longer bundle containerd or runc, soversions.shnow scrapes theCONTAINERD_VERSIONandRUNC_VERSIONseries moby pins in its Dockerfile, resolves the latest patch release of each, and records per-architecture URLs and checksums for everything inversions.json. Architecture selection moves into a newgenerate-stackbrew-library.jq, so each variant is limited to the architectures that have everything it needs.docker-engine_(justbin), and onlyctrand the shim from containerd's static tarball plusrunc, each in its own checksummedRUN(the cli image takesbin/dockerfromdocker-cli_)Program Files\DockerwithDocker\binon PATH, which leavescli-pluginsright where the CLI looks for itsha256sum -c(download()used to skip it for rootless extras because not every architecture has them), and make missing or malformed checksums fatalversions.shinstead of repeating it per project, with explicit error handling that no longer depends onerrexitinside command substitutionsDrop the legacy
dockerUrlfallbacks and the dead29.8.2branches now that 29.10.x is the only version here.Assisted-By: "claude my eyes right out"