A Topo Template is a containerized sample project for Arm-based Linux systems. At minimum, it is a directory containing a compose.yaml, Dockerfiles, and source code, with an x-topo metadata block that describes what the template does, what hardware features it needs, and what parameters a user can configure.
This specification defines the x-topo extension. It was developed for use with Topo, but this is an open spec and any tool can read and act on x-topo metadata to discover, validate, and deploy templates.
A template's compose.yaml is a standard Compose file with an x-topo block at the root:
services:
app:
platform: linux/arm64
build:
context: .
args:
GREETING: "Hello, World"
x-topo:
name: "hello-world"
description: "A simple greeting app for Arm"
type: "application"
features: ["NEON"]
args:
GREETING:
description: "Message shown by the app"
required: true
example: "Hello from Arm"Because this is valid Compose, any template can be run with plain docker compose. The x-topo block is what allows tools like Topo to add interactive configuration, argument validation, and hardware feature filtering on top.
- Human-readable spec:
- Machine-readable schema:
A curated list of example templates can be found either via:
- the topo templates command or
- the topo catalog.
We welcome any contributors who wish to add their own template to the list to submit a Pull Request as indicated below.
If you want your template to be added to the template list:
- Review the Authoring Templates section of the Specification.
- Validate Schema Compliance of your proposed template.
- Open a Pull Request in the
Toporepository to update the Topo template catalog.
The machine-readable schema to check any template against is provided as a JSON schema and is therefore compatible with any supported tooling.
For validation workflows, see:
This format follows Compose-style evolution and does not require strict schema-version pinning by implementations.
Implementations should follow Compose guidance for optional attributes.
| Metadata | |
|---|---|
| Status | Work in progress |
| Created | 2025-11-10 |