agentleFS
wheeloswheelos/apollo-lite/.agents/skills/container-build/SKILL.md

container-build

Skill177 starsChanged 7 days agoApache-2.0View on GitHub

Build, check, and publish Apollo-Lite WheelOS development container images with Docker Buildx Bake.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to build, check, or publish WheelOS development container images.

    line 10
  2. Distinctive:

    Run commands from the repository root.

    line 16
  3. Very specific:

    Use docker/build/build_docker.sh for safe Dockerfile checks and normal local builds.

    line 35
  4. Very specific:

    Keep mutable dev-* tags for development.

    line 63
  5. Distinctive:

    Stop at the first actionable build or check failure.

    line 81
  6. Distinctive:

    Do not claim Orin runtime validation from QEMU or x86 builds.

    line 84
  7. Distinctive:

    Do not publish mutable development tags as releases or overwrite published version tags.

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Container Image Build

When

Use this skill to build, check, or publish WheelOS development container images. It covers image construction only; compiling Apollo source inside a running image is covered by Build.

Scope and prerequisites

  • Run commands from the repository root.
  • Docker Buildx Bake constructs the WheelOS images; it does not compile Apollo source.
  • Supported targets:
    • dev-amd64-cpu-u22: x86_64 CPU, Ubuntu 22.04.
    • dev-amd64-cuda-u22: x86_64 GPU, CUDA 12.8 / Ubuntu 22.04.
    • dev-orin-jp621-l4t3643: Orin, JetPack 6.2.1 / L4T 36.4.3.
  • The default Bake group builds x86 CPU and GPU. Build Orin on a native Orin/JetPack 6.2.1 host; QEMU cannot validate Jetson device-tree or GPU runtime requirements.

Workflow

  1. Inspect the Bake graph before an unfamiliar or production build:

    docker buildx bake -f docker/build/docker-bake.hcl --print
  2. Use docker/build/build_docker.sh for safe Dockerfile checks and normal local builds. Supported legacy Dockerfile names include:

    bash docker/build/build_docker.sh -f dev.x86_64.cpu.dockerfile --check
    bash docker/build/build_docker.sh -f dev.x86_64.cpu.dockerfile
    bash docker/build/build_docker.sh -f dev.x86_64.cuda.dockerfile
    bash docker/build/build_docker.sh -f dev.aarch64.orin.dockerfile --geo cn

    The wrapper selects one exporter: local Docker image store for local builds, registry for pushes, and cache-only for checks. Use --check rather than a raw Dockerfile check that could export an incomplete image to a local tag.

  3. Select the registry and package mirrors with --geo cn (Hangzhou registry and China mirrors) or --geo us (Docker Hub and public package sources). APOLLO_REPO overrides the image repository.
  4. For a versioned validation build or release push, provide --release-version. Add --push only when publishing:

    bash docker/build/build_docker.sh -f dev.x86_64.cpu.dockerfile \
      --geo cn --release-version v1.2.3
    bash docker/build/build_docker.sh -f dev.x86_64.cuda.dockerfile \
      --geo cn --release-version v1.2.3 --push

    Keep mutable dev-* tags for development. Do not overwrite published version tags; promote the exact validated image digest instead of rebuilding for each environment.

  5. Reuse the default Buildx cache. --clean is for cache diagnosis, not routine builds. BuildKit layer cache, HTTP artifact cache, and Bazel caches are separate; --cache-server URL selects the HTTP artifact cache and CACHE_REGISTRY=... configures shared BuildKit registry cache.

Acceptance

  • The requested target builds or passes the wrapper's --check.
  • Confirm the intended platform and versioned tag before publishing.
  • A successful Orin cross-build is not proof of Jetson device-tree or GPU runtime correctness; require native Orin validation for those claims.

Failure handling

  • Stop at the first actionable build or check failure. Inspect its output before changing options or retrying; do not disable cache or change registries as a blind workaround.
  • Do not claim Orin runtime validation from QEMU or x86 builds.
  • Do not publish mutable development tags as releases or overwrite published version tags.

Source of truth

  • docker/build/README.md
  • docker/build/docker-bake.hcl
  • docker/build/build_docker.sh

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.