Detect and forward a private image sc can't build, but can reach locally #33
No reviewers
Labels
No labels
⏳in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grey.ooo/someones.computer_agent!33
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/forward-private-images"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
image:reference the client can already reachlocally (no
dot/colon-before-slash orlocalhostheuristic false-positiveson Docker Hub), prompts before uploading it as-is, and uploads it alongside the
usual build contexts.
internal/dockerhost: answers whethersccan drive a local Docker daemonat all, talking straight to the socket.
internal/dockercli: shells out to thedockerCLI itself (inspect/pull/save)since replicating its credential-helper resolution over the raw Engine API would
mean reinventing
~/.docker/config.json— a deliberate, documented exception tothis repo's usual "talk to the socket" rule.
internal/forward: the forwardability heuristic and candidate filtering.internal/upload: the multipart manifest gains anImagesarray alongside theexisting
Contexts, streamed from a temp file rather than held in memory.Test plan
go build ./...,go vet ./...— cleango test ./...— all packages passhack/lint.sh(golangci-lint v2.6.1, pinned) — 0 issueshack/coverage.sh— no floor regressions (dockercli/dockerhost/forwardfloors recorded fresh; existing packages' figures held or rose slightly)
Consumed by the platform repo's
feature/sc-forward-private-imagesbranch, whichpins this commit and builds the server-side accept/store/load/scan half on top of it.
Detect and forward a private image sc can't build, but can reach locallyto WIP: Detect and forward a private image sc can't build, but can reach locallyWIP: Detect and forward a private image sc can't build, but can reach locallyto Detect and forward a private image sc can't build, but can reach locallyHeads up for whoever merges this: Someones.Computer's main pins the
agentsubmodule at this branch's tip (0abd89ee), which is diverged from agent/main and only reachable from this branch. When this squash-merges and the branch is deleted, that pin orphans and a fresh clone of Someones.Computer failsgit submodule updateon theagentgitlink (the #902 failure mode). After merging, bump the Someones.Computeragentpin to the resulting main commit. Tracked in Grey.ooo/Someones.Computer#935 → Grey.ooo/Someones.Computer#935