feat(docker): add Docker support and one-click installer - #29
Conversation
Changes: - Add .github/workflows/docker-publish.yml for GitHub Packages - Update docker-compose.yml to use ghcr.io/potlock/zerobuild:latest - Update bootstrap.sh with correct PotLock/zerobuild repo URL - Create new install.sh as one-click installer with Docker/binary/source options - Update zerobuild_install.sh to delegate to install.sh Features: - Auto-detects best install method (Docker > Binary > Source) - Docker: Pulls from GitHub Container Registry with wrapper script - Binary: Downloads pre-built release for detected platform - Source: Builds from source if Rust is available Usage: curl -fsSL https://raw.githubusercontent.com/PotLock/zerobuild/main/install.sh | bash
PR Intake Checks - Warnings (non-blocking)The following are recommendations:
|
|
Caution Review failedThe pull request is closed. Note
|
| Cohort / File(s) | Summary |
|---|---|
Docker & Container Configuration .github/workflows/docker-publish.yml, docker-compose.yml |
New GitHub Actions workflow automates multi-architecture Docker image builds (amd64, arm64) and pushes to ghcr.io on main pushes, version tags, and PRs. Includes separate release and dev image builds. docker-compose.yml updates image reference to PotLock registry and adds commented dev build configuration. |
Installation Scripts install.sh, scripts/bootstrap.sh, zerobuild_install.sh |
New install.sh provides feature-complete installer with three methods (Docker, pre-built binary, source build), platform detection, auto-selection logic, and user guidance. bootstrap.sh updates repository and archive URLs to PotLock organization. zerobuild_install.sh refactored to minimal delegator that chains to local install.sh or bootstrap.sh before falling back to remote installer. |
Estimated code review effort
🎯 4 (Complex) | ⏱️ ~45 minutes
✨ Finishing Touches
- 📝 Generate docstrings (stacked PR)
- 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
- Commit unit tests in branch
fix/docker-and-install
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
Changes:
Features:
Usage:
curl -fsSL https://raw.githubusercontent.com/PotLock/zerobuild/main/install.sh | bash
Summary by CodeRabbit
Release Notes
New Features
Chores