feat: end-to-end working runtime with embedded dependencies - #4
Merged
Conversation
Single binary that boots containerd in-process, provisions ephemeral containers, and runs GitHub Actions jobs to completion. Embedding: - Embed containerd-shim-runc-v2 and runc, extracted next to binary on startup - Embed CNI plugins (bridge, host-local, portmap), extracted to data dir - Register containerd builtin plugins via blank import Runtime: - Default to ghcr.io/actions/actions-runner:latest (runner pre-installed) - Custom images via EPHEMERD_IMAGE get embedded runner mounted in - Per-job hardlink copy of runner dir for concurrent write safety - Serialize image pulls with mutex to avoid content store contention Networking: - Custom EPHEMERD-FORWARD iptables chain (avoids CNI/Netavark conflicts) - Auto-detect host MTU for bridge (fixes WSL2 1420 MTU) - Configurable subnet via [network] subnet in TOML (default 10.89.0.0/16) - Generate resolv.conf with public DNS, filtering unreachable private IPs - DNS (port 53) allowed through firewall before private range deny rules GitHub integration: - Replace hand-rolled YAML parser with proper yaml.Unmarshal - Add debug logging to poll loop for visibility - Use gopkg.in/yaml.v3 (already an indirect dep) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
go:embed directives need the shim, runner, and CNI binaries present even for go vet and golangci-lint. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…age) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
ghcr.io/actions/actions-runner:latest— no image config needed for Linux jobs[network] subnetin TOML configyaml.Unmarshalfor EPHEMERD_IMAGE lookupTest plan
test-runner.ymlviaworkflow_dispatch🤖 Generated with Claude Code