depot-container-builds
Fungsinya
Skill ini memandu agent AI dalam membangun image container dengan Depot alih-alih pengaturan Docker lokal. Ditujukan untuk pengembang yang mengemas aplikasi sebagai image Docker.
Kapan dipakai
- βSaat Anda perlu membangun image Docker di builder jarak jauh Depot.
- βSaat Anda ingin satu image dibangun untuk komputer Intel dan ARM sekaligus.
- βSaat build container gagal dan Anda memerlukan bantuan untuk memperbaikinya atau mempercepat cache-nya.
Link skill
https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-container-builds/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBangun image Docker aplikasi saya dengan Depot untuk chip Intel dan ARM, lalu kirim ke registry saya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menggunakan perintah build Depot sebagai pengganti perintah Docker build biasa. Build berjalan di mesin jarak jauh dengan caching otomatis, dan agent dapat memuat, mengirim, atau menyimpan image.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
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
--loadto download to local Docker,--pushto push to a registry,--saveto 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 |
Pertanyaan umum
Apakah ini pengganti docker build?
Ya. Skill menyebutkan bahwa depot build adalah pengganti langsung untuk docker build, dan depot bake menggantikan docker buildx bake.
Ke mana image-nya dikirim?
Skill dapat memuat image ke Docker lokal, mengirimnya ke registry, atau menyimpannya ke registry Depot, tergantung opsi yang dipilih.
Apakah perlu mengatur cache?
Tidak. Skill menyebutkan caching bersifat otomatis di builder Depot.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6811
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
formatting-slack-messages
41kMembantu agent Anda membuat pesan, modal, dan layar beranda Slack yang jelas dengan tata letak yang tepat, diperiksa sesuai aturan Slack terkini.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.