Skip to content

feat: orchd-osx is applz now, and orchd ships its rootstock - #77

Merged
adiled merged 1 commit into
mainfrom
applz
Nov 9, 2026
Merged

adiled merged 1 commit into
mainfrom
applz

Conversation

@adiled

@adiled adiled commented Nov 9, 2026

Copy link
Copy Markdown
Owner

orchd-osx moves to its own repo as applz, "a lean container runtime over Apple Virtualization". The 31 commits of its history go with it. applz knows nothing of orchd: it has its own CLI (check, pull, run, stop, rm) and its own run spec.

What orchd keeps: orchd-rootstock-applz (contract 1, Zig, beside orchd)

  • check finds applz beside the plugin or on PATH, then runs applz check.
  • prepare runs applz pull <image> and makes a named volume's directory under data_dir/<service>/volumes/<name>. A host service gets its data dir, as with bare.
  • exec-set turns the service into applz's run spec. Env files are merged with env; relative mounts are anchored to the project; named volumes go under the service's data dir. Ports, memory, cpus, user, workdir, entrypoint, cmd and limits map across. It answers with applz pull / run --spec-base64 / stop / rm, every argument shell-quoted. A host service runs as it would bare.
  • The run spec rides inline as base64, so exec-set stays pure (no files to write) and nothing in a launchd or systemd line needs quoting.

orchd

  • orchd-osx/, ORCHD_OSX.md and its stress-test record leave. The latter two now live in applz.
  • The apple rootstock keeps cli and xpc. ORCHD_APPLE_MODE=osx is an error that points at applz.
  • just builds and ships orchd-rootstock-applz on macOS and no longer fetches a kernel. release.sh keeps the plugin in lockstep.

Checked, live on this Mac

  • applz selftest boots the kernel. applz selftest-run runs the payload in the VM and returns its exit code over vsock.
  • orchd grow --rootstock applz --platform orchdi with an alpine service. Env reached the container, a project mount was read inside it, the published port was listening on the host, and the keeper showed it running. fell stopped it, removed its state and freed the port.
  • That run caught a bug carried over from orchd-osx: cmd was split on spaces, so sh -c '...' broke. It's fixed in applz, which now splits words like a shell and refuses an unterminated quote up front.
  • zig build test passes in orchd (62) and the plugin (6). applz passes its own.

orchd-osx leaves for its own repo as applz, a lean container runtime over
Apple Virtualization that knows nothing of orchd. orchd keeps the adapter:
orchd-rootstock-applz turns a service into applz's run spec and an exec set of
applz pull, run, stop and rm, mounts named volumes under the service's data,
and runs host services as bare would. The apple rootstock keeps its cli and
xpc modes; asking it for osx points at applz.
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.

1 participant