본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)41k · #6811

depot-container-builds

하는 일

이 스킬은 로컬 Docker 대신 Depot으로 컨테이너 이미지를 빌드하는 과정을 AI 에이전트에게 안내합니다. 앱을 Docker 이미지로 패키징하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Depot 원격 빌더에서 Docker 이미지를 빌드해야 할 때.
  • ✓Intel과 ARM 컴퓨터 모두에서 쓸 수 있는 이미지를 하나 만들고 싶을 때.
  • ✓컨테이너 빌드가 실패해서 수정하거나 캐시 속도를 높여야 할 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-container-builds/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-container-builds/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Intel과 ARM 칩 모두를 위해 Depot으로 제 앱의 Docker 이미지를 빌드하고, 제 레지스트리에 푸시해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 평소 Docker 빌드 명령 대신 Depot의 빌드 명령을 사용합니다. 빌드는 자동 캐싱이 되는 원격 머신에서 실행되며, 선택한 옵션에 따라 이미지를 로드, 푸시, 저장할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Depot Container Builds

Depot runs Docker image builds on remote high-performance builders (16 CPU, 32 GB RAM, NVMe SSD cache). depot build is a drop-in replacement for docker build / docker buildx build. depot bake replaces docker buildx bake.

<!-- PostHog-local section. Keep it when resyncing from upstream; see UPSTREAM.md. -->

Before you propose a change to CI, check things already tried for the idea. It records what was measured, and why some good-sounding changes were reverted or rejected.

<!-- End PostHog-local section. -->

Project Selection for Multi-Org Users

Container build commands target a specific project, not an organization. If expected projects aren't visible or a build unexpectedly prompts to select a project, the current default org may be wrong:

depot org show              # Current org ID
depot org list              # Orgs the user belongs to
depot org switch <org-id>   # Optional: set default org

Key Concepts

  • Builds run remotely on ephemeral EC2 instances — images stay in remote cache by default
  • Use --load to download to local Docker, --push to push to a registry, --save to store in Depot's ephemeral registry
  • Cache is fully automatic on persistent NVMe SSDs — no manual cache config needed
  • Multi-platform builds use native CPU builders (no QEMU emulation) for amd64 and arm64 simultaneously
  • All team members on a project share the same layer cache

depot build — Essential Patterns

# Build remotely (image stays in remote cache)
depot build -t repo/image:tag .

# Build + download to local Docker daemon
depot build -t repo/image:tag . --load

# Build + push directly to registry (fast — doesn't route through local network)
depot build -t repo/image:tag . --push

# Multi-platform build (native CPUs, no emulation)
depot build --platform linux/amd64,linux/arm64 -t repo/image:tag . --push

# Save to Depot ephemeral registry (7-day default, configurable per repository)
depot build --save .
depot build --save --save-tag my-tag .

# Suppress provenance metadata (fixes "unknown/unknown" platform in registries)
depot build -t repo/image:tag --push --provenance=false .

# Lint Dockerfile before building
depot build -t repo/image:tag . --lint

# Build with secrets
depot build --secret id=mysecret,src=./secret.txt -t repo/image:tag .

# Build with SSH forwarding
depot build --ssh default -t repo/image:tag .

# Specify a Depot project explicitly
depot build --project <project-id> -t repo/image:tag .

Key Flags

Flag Description
--load Download image to local Docker daemon
--push Push to registry
--save Save to Depot ephemeral registry
--save-tag Custom tag for Depot Registry
--platform Target platforms: linux/amd64, linux/arm64 (native, no emulation), plus linux/arm/v6, linux/arm/v7, linux/386
--build-platform Force build to run on specific arch (dynamic default)
--project Depot project ID
--token Depot API token
--lint Lint Dockerfile before build
--provenance Control provenance attestation (set false to fix unknown/unknown)
--sbom Generate an SBOM attestation (shorthand for --attest type=sbom)
--sbom-dir D
자주 묻는 질문

docker build를 대체하나요?

네. 스킬은 depot build가 docker build의 드롭인 대체 명령이고, depot bake는 docker buildx bake를 대체한다고 설명합니다.

이미지는 어디에 저장되나요?

선택한 옵션에 따라 로컬 Docker로 로드하거나, 레지스트리에 푸시하거나, Depot 레지스트리에 저장할 수 있습니다.

캐시를 따로 설정해야 하나요?

아니요. 스킬은 Depot 빌더에서 캐싱이 자동으로 이루어진다고 말합니다.

상세 정보

작성자의 원본 설명

Configures and runs Depot remote container builds using `depot build` and `depot bake`. Use when building Docker images, creating Dockerfiles with Depot, pushing images to registries, building multi-platform/multi-arch images (linux/amd64, linux/arm64), debugging container build failures, optimizing Dockerfile layer caching, using docker-bake.hcl or docker-compose builds, or migrating from `docker build` / `docker buildx build` to Depot. Also use when the user mentions depot build, depot bake, container builds, image builds, or asks about Depot's build cache, build parallelism, build autoscali

repo: PostHog/posthog

인기도

GitHub 스타
41k
순위
#6811
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬