feat!: use Apple container on macOS #40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/apple-container-macos"
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?
Why
A Mac needed a rootless Podman machine that the operator created, started,
sized and kept rootless, and only paths under its shared volumes could be
mounted. macOS now runs on Apple's own runtime, the
containerCLI 1.5.0,so a Mac needs no Podman at all and setup is simpler.
What changed
container.Linux keeps Podman and behaves as before.
container1.5.0 ornewer, with its service running (
container system start --enable-kernel-install). The Podman machine is no longer used, and theinstaller installs
containerwith Homebrew./workspaceappears root-owned. The base imagetherefore trusts
/workspaceand the worktrees below it for git.goals.mdis not served (#2148);/dev/nullincluded, isrefused when it lands inside another mount (#2148);
restore it afterwards (#2299);
containersplits on are notforwarded, because
containerwould otherwise fill the pieces from thehost environment.
Dockerfile.azkabanbuilds on macOS from a private copy of the approvedrecord in which only the first
FROMimage is replaced, becausecontainer buildhas no--from. The installer adds alocalhost/<image>:latestname next to the plain one.macOS runtime.
Verification
make lint && .agents/hooks/shellcheck.sh repo && make testpasses:ShellCheck reports 35 files clean and all 305 tests pass.
prettier --check README.md docs/*.mdpasses.(the env-file split and the
localhost/image name) are fixed in the lastcommit.
make smoke-images, which needs real Podman; the Dockerfile gained oneRUN.stubbed on Linux.
Risks and follow-ups
/workspace;--env-file /dev/fd/3;--cidfilewithcontainer stop;localhost/image names;--ulimit.macOS, and signal forwarding (#1876).