A small OCI registry deployment package from Apollo Deploy, released under MIT.
Run CNCF Distribution 3.1.2 on a Linux VPS with Cloudflare R2 for durable storage. Includes HTTPS, bcrypt authentication, hardened systemd supervision, health checks, and updates with rollback.
BuildKit / OCI clients → HTTPS → Distribution → Cloudflare R2
Use it for remote BuildKit cache and OCI artifacts. Apollo clients receive registry credentials only; R2 credentials stay on the registry server. The package runs independently of Apollo services and requires no Docker engine.
Prepare a dedicated Debian 12/13 or Ubuntu 24.04 VPS with systemd and an x86_64 or arm64 CPU. Start with 2 vCPU, 2 GB RAM, and 20–40 GB SSD.
Before installing, you need:
- DNS pointing to the VPS, using a DNS-only Cloudflare record.
- A private R2 bucket and a bucket-scoped Object Read & Write token.
- A valid full-chain TLS certificate and root-owned
0600private key. - Root access, a management CIDR for SSH, and a fresh UFW configuration.
See the operator guide for preparation. Certificate issuance uses your existing CA or ACME setup.
On the VPS, from the repository root:
sudo install -m 0600 templates/env.example /root/registry-settings.json
sudoedit /root/registry-settings.json
sudo --preserve-env=SSH_CONNECTION ./install.sh /root/registry-settings.jsonThe settings template is JSON. Replace every placeholder, including the TLS paths, SSH settings, and registry password. Keep the file private. Repeat installation with identical settings preserves existing credentials and data.
Authenticate through your OCI client's credential store. The initial account can read and write every repository; use it only with trusted clients.
BuildKit cache settings:
export: type=registry,ref=registry.example.com/apollo/build-cache/project,mode=max
import: type=registry,ref=registry.example.com/apollo/build-cache/project
Store final artifacts in registry.example.com/apollo/artifacts/project and consume
immutable digest references. Cache and artifacts need separate retention policies.
See client integration for authentication and BuildKit examples.
sudo /opt/apollo-registry/deploy/healthcheck.sh --jsonRun the live qualification suite before production use. Live VPS/R2/BuildKit qualification has not been recorded for this package. Qualification restarts the registry and prunes a dedicated BuildKit worker's local cache.
The operator guide covers updates, rollback, TLS renewal, logs, backups, removal, and troubleshooting. Uninstall never deletes R2 data.
Focused fixes and documentation improvements are welcome. Keep changes small, preserve the credential boundary, and include the checks you ran. See development checks.
Report vulnerabilities privately to Apollo Deploy maintainers through the hosting platform's private reporting channel when available. Never include secrets in public issues.
Copyright © 2026 Apollo-Deploy. MIT licensed. Third-party tools retain their own licenses.