用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cbgbt/bottlerocket-forest --skill local-registry命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | local-registry |
| description | Start and manage a local OCI registry for Bottlerocket kit development |
Start and manage a local OCI registry for development. This allows building and publishing kits locally without requiring external registry access.
brdev registry start
This will:
localhost:5000brdev registry status
Returns exit code 0 if running, non-zero otherwise.
brdev registry url
Outputs localhost:{port} for the current grove. Use this in scripts instead of hardcoding ports.
brdev registry logs
To follow logs in real-time:
brdev registry logs --follow
brdev registry stop
Note: This preserves the registry data volume.
brdev registry clean
This removes both the container and the data volume.
brdev uses environment variables for configuration. Create a .env file in the forest root or set environment variables:
# Custom image (default: registry:2)
BRDEV_REGISTRY_IMAGE=registry:2.8
Note: Container and volume names are automatically derived from the grove name as brdev-registry-{grove} and brdev-registry-data-{grove}. The port is auto-derived from a hash of the grove name (range 5001-5999).
After starting the registry:
brdev registry list
Should return: {"repositories":[]}
Docker not installed:
Error: Docker is not installed or not in PATH. Install Docker and ensure it's in your PATH
Solution: Install Docker and ensure it's in your PATH.
Docker daemon not running:
Error: Docker daemon is not running. Start Docker with: sudo systemctl start docker
Solution: Start the Docker daemon.
Port already in use:
Error: Failed to start container. The port may already be in use
Solution:
docker ps | grep registrydocker stop <container-id>FORESTER_REGISTRY_PORTPermission denied:
groups | grep dockersudo usermod -aG docker $USERbuild-kit-locally - Uses local registry to publish built kitsbuild-variant-from-local-kits - Configures variant builds to use local registryConfiguration commands for local registry usage:
For publishing kits:
brdev twoliter use-local-publish - Create Infra.toml for publishing to local registrybrdev twoliter use-upstream-publish - Remove Infra.tomlFor fetching kits:
brdev twoliter use-local-deps - Create Twoliter.override for fetching from local registrybrdev twoliter use-upstream-deps - Remove Twoliter.overrideBoth (convenience):
brdev twoliter use-local - Create both filesbrdev twoliter use-upstream - Remove both filesWhen fetching, also set vendor = "local" in Twoliter.toml for specific kits you want from the local registry.