Skip to content

Fix protected Docker builds on macOS with OrbStack - #1943

Open
chbndrhnns wants to merge 1 commit into
oblien:mainfrom
chbndrhnns:fix/orbstack-protected-build-cache
Open

chbndrhnns wants to merge 1 commit into
oblien:mainfrom
chbndrhnns:fix/orbstack-protected-build-cache

Conversation

@chbndrhnns

Copy link
Copy Markdown
Contributor

Fixes #1942.

What changed

  • On macOS SSH targets, read Docker filesystem capacity and managed cache-volume sizes through the selected Docker daemon, not from the macOS filesystem. The probe uses a digest-pinned, network-disabled container with a read-only bind mount; BuildKit's protected mode and cache admission policy remain enabled.
  • Keep last-use stamps on the SSH host and read their timestamps with BSD stat on macOS. Leave Linux and Cloud storage measurement paths unchanged, except for an actionable error when Docker's data root cannot be reached from the shell.

Verification

  • 304 tests passed across eight focused adapter test files. Adapter tsc --noEmit passed.
  • On a macOS OrbStack SSH target, ran the patched adapter to read daemon capacity, measure a disposable Docker volume, and read a temporary macOS stamp.
  • Bootstrapped a disposable protected BuildKit worker on the same target and built a minimal Dockerfile. The controller and existing project deployment were not modified.

On macOS, measure daemon storage and owned cache volumes with an isolated, read-only Docker helper. Keep last-use stamps on the SSH host and preserve the existing Linux and Cloud storage paths.

Fixes oblien#1942
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Protected Docker builds over SSH fail on macOS with OrbStack before BuildKit starts

1 participant