Community코딩 & 개발github.com

build-kit-locally

Bottlerocket Kit을 빌드하여 로컬 OCI 레지스트리에 게시하고 개발 테스트 및 검증을 수행하는 스킬입니다.

build-kit-locally란 무엇인가요?

이 스킬은 Bottlerocket Kit(core-kit 또는 kernel-kit)을 빌드하고 로컬 OCI 레지스트리에 게시하는 방법을 제공합니다. kit 패키지 변경 사항을 변형(variant) 빌드에서 테스트할 수 있도록 지원하여, 변경 내용을 프로덕션 레지스트리에 게시하지 않고도 안전하게 검증할 수 있습니다. 주로 iterative 개발, 변형 이미지 빌드 전 사전 테스트, kit 패키지 변경 및 변형과의 통합 작업 시 사용됩니다. Docker가 설치되어 있고 grove 디렉토리 내에서 작업 중이며, kit 저장소가 `kits/` 디렉토리에 클론되어 있어야 합니다. 주요 단계는 로컬 레지스트리 실행, `brdev twoliter use-local-publish` 명령어를 통한 로컬 게시 설정, `make build`로 kit 빌드, `make publish VENDOR=local`로 게시, `brdev registry list`로 확인입니다. 일반적인 문제로는 레지스트리 미실행, Infra.toml 미설정, Docker 권한 오류 등이 있으며 각 해결 방안을 제시합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cbgbt/bottlerocket-forest/tree/main/skills/build-kit-locally

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

스킬: Kit 빌드 및 게시

목적

Bottlerocket kit(core-kit 또는 kernel-kit)을 빌드하고 개발 테스트 및 검증을 위해 로컬 OCI 레지스트리에 게시합니다. 이를 통해 kit 변경 사항을 프로덕션 레지스트리에 게시하지 않고 변형 빌드에서 테스트할 수 있습니다.

사용 시점

  • kit 패키지를 변경하고 변형에서 테스트할 때
  • kit에 대한 반복 개발 작업 중
  • kit 변경 사항에 의존하는 변형 이미지를 빌드하기 전

사전 요구 사항

  • Docker 설치 및 실행 중
  • grove 디렉토리 내에서 작업 중
  • kit 저장소가 kits/ 디렉토리에 클론되어 있음

절차

1. 로컬 레지스트리 실행 확인

brdev registry start

2. 로컬 레지스트리용 설정

cd kits/<kit-name>
brdev twoliter use-local-publish

이 명령은 게시를 위해 로컬 레지스트리를 가리키는 Infra.toml을 생성합니다.

3. Kit 빌드

make build

특정 아키텍처의 경우:

make build ARCH=x86_64
# 또는
make build ARCH=aarch64

4. 로컬 레지스트리에 게시

make publish VENDOR=local

이 명령은 localhost:5000에 local 공급업체 접두사로 kit를 게시합니다.

5. 게시 확인

brdev registry list

명령 출력에 kit가 저장소 목록에 표시되어야 합니다.

검증

kit를 사용할 수 있는지 확인합니다:

brdev registry list

게시된 버전 태그가 반환되어야 합니다.

일반적인 문제

레지스트리가 실행 중이 아님:

오류: 연결 거부됨

해결 방법: brdev registry start를 실행하세요.

Infra.toml이 설정되지 않음:

오류: 공급업체 'local'을 찾을 수 없음

해결 방법: 설정을 생성하려면 brdev twoliter use-local-publish를 실행하세요.

Docker 권한 거부: 해결 방법: 사용자가 docker 그룹에 속해 있고 Docker 데몬이 실행 중인지 확인하세요.

다음 단계

kit를 게시한 후:

  1. 변형의 Twoliter.toml을 업데이트하여 새 kit 버전을 참조하세요.
  2. 변형 저장소에서 make update를 실행하세요.
  3. cargo make로 변형을 빌드하세요.

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

ad-hoc-implementation-plan

Transform a rough plan into implement-commit ready artifacts. Allows rigorous review while implementing.

build-variant-from-local-kits

Build a variant using locally published kits for development validation

deep-research

Create educational documents that build understanding progressively with citations

edit-spec-file

Edit Bottlerocket RPM spec files following project style conventions

fact-find

Quick lookup of specific facts about Bottlerocket with citations

idea-honing

Clarify feature ideas through iterative Q&A, recording insights to guide concept development

implement-commit

Implement commits from an implementation plan using a TDD pipeline

local-registry

Start and manage a local OCI registry for Bottlerocket kit development

prepare-core-kit-release

Prepare bottlerocket-core-kit for release by bumping version and updating changelog

propose-feature-concept

Create a new feature concept document to pitch the idea and explain the problem/solution

propose-feature-design

Create or update feature technical design document with architecture and implementation guidance

propose-feature-requirements

Create or update feature requirements specification using EARS notation with examples and appendices

propose-feature-test-plan

Create a test plan mapping EARS requirements and Critical Constraints to specific tests

propose-implementation-plan

Create an implementation plan with atomic commits that build toward a complete feature

review-code

Deep code review generating PR comments via principled question-driven analysis

review-scope

Verify code changes match intended scope and requirements without exceeding boundaries

review-style

Verify code follows project style guides without providing improvement suggestions

test-local-twoliter

Build and test local changes to twoliter before releasing

update-twoliter

Update all Bottlerocket repositories to a new Twoliter version

관련 스킬