depot-container-builds
यह क्या करती है
यह स्किल AI एजेंट को स्थानीय Docker सेटअप की जगह Depot से कंटेनर इमेज बनाने की प्रक्रिया सिखाती है। यह उन डेवलपर्स के लिए है जो अपने ऐप्स को Docker इमेज के रूप में पैक करते हैं।
कब इस्तेमाल करें
- ✓जब आपको Depot के रिमोट बिल्डर पर Docker इमेज बनानी हो।
- ✓जब आप एक ही इमेज को Intel और ARM दोनों कंप्यूटर के लिए बनवाना चाहें।
- ✓जब कंटेनर बिल्ड विफल हो और आपको उसे ठीक करना हो या कैश को तेज़ करना हो।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-container-builds/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे ऐप की Docker इमेज Depot से Intel और ARM चिप दोनों के लिए बनाइए, और उसे मेरी रजिस्ट्री में पुश कीजिए।”
हर हफ़्ते 5 नई skills, 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.
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 |
अक्सर पूछे जाने वाले सवाल
क्या यह 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
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
formatting-slack-messages
41kयह आपके एजेंट को Slack के मौजूदा नियमों के अनुसार जाँचे गए साफ़ मैसेज, मॉडल और होम स्क्रीन बनाने में मदद करती है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।