Manifest reference
Field-by-field lookup for sheppy-manifest.yaml. To learn the manifest by
example, start with Manifest; come back here to look up a
field.
Top level
| Field | Required | Type | Meaning |
|---|---|---|---|
machines | no | list of machine | Declares the machines an alternative can reference. Omit entirely to run everything locally. |
nodes | no* | list of node | The logical units of your system. *Not enforced by the loader, but a manifest with no nodes has nothing to launch. |
Machines
machines:
- name: robot
host: 10.0.0.20
user: researcher
ros_setup: /opt/ros/humble/setup.bash| Field | Required | Type | Meaning |
|---|---|---|---|
name | yes | string | Referenced by an alternative’s machine:. Must be unique; the loader errors if empty or missing. |
host | yes | string | Stored on the machine record. The loader errors if empty or missing. |
user | yes | string | Stored on the machine record. The loader errors if empty or missing; see below. |
ros_setup | no | string | Path to a setup file sourced before the command of any executable, launch_file, or process alternative whose machine: names this machine. ~ is expanded. See ROS integration. |
Multi-machine launch isn’t ready yet. Every node runs on the machine where
you run sheppy, whatever its machine: says. Launching on other hosts is
planned; see the roadmap.
Nodes
nodes:
- name: camera
description: "RGB-D source"
select: single
alternatives: [...]| Field | Required | Type | Meaning |
|---|---|---|---|
name | yes | string | Must be unique across the manifest; the loader errors on a duplicate. |
description | no | string | Stored, but rendered nowhere in the TUI today. |
select | no | string | Defaults to single, the only accepted value — see below. |
alternatives | yes | non-empty list of alternative | The interchangeable ways to do this job. |
Alternatives
Common fields, valid regardless of kind:
| Field | Required | Type | Meaning |
|---|---|---|---|
id | yes | string | Unique within its node; the loader errors on a duplicate. |
kind | yes | string | Must name a registered launcher — one of executable, launch_file, process, docker, or a kind added by a third-party plugin. |
machine | no | string | Must name a declared machine (validated). Selects that machine’s ros_setup to source before the command, and is shown in the TUI’s host column and detail panel. It does not launch the command remotely — see below. |
params | no | mapping | How it’s used depends on kind — see the per-kind sections below. |
publishes | no | list of string | Documentation only — see below. |
subscribes | no | list of string | Documentation only — see below. |
Everything else in an alternative’s mapping is kind-specific — package,
executable, launch_file, command, container, compose — documented
per kind below.
Kinds
Every kind, builtin or plugin, registers through the same sheppy.launchers
entry-point group in pyproject.toml. executable, launch_file, and
process ship in sheppy’s core; docker ships as a separate plugin
module (sheppy.launch.docker) using that same mechanism; it is installed
with sheppy. A third party
adds a new kind exactly the same way — see
Writing a launcher plugin.
| Kind | Source | Requires | Optional fields |
|---|---|---|---|
executable | core | package, executable | params, machine, publishes, subscribes |
launch_file | core | package, launch_file | params, machine, publishes, subscribes |
process | core | command | machine, publishes, subscribes (params accepted but ignored) |
docker | plugin (sheppy.launch.docker) | exactly one of compose or container | params, ros_node_name, machine, publishes, subscribes |
executable (core)
Runs ros2 run <package> <executable>.
| Field | Required | Meaning |
|---|---|---|
package | yes | ROS package name. |
executable | yes | Executable name within the package. |
params | no | Appended as --ros-args -p key:=value for each entry. |
launch_file (core)
Runs ros2 launch <package> <launch_file>.
| Field | Required | Meaning |
|---|---|---|
package | yes | ROS package name. |
launch_file | yes | Launch file name within the package. |
params | no | Appended as key:=value for each entry. These are launch arguments, so the launch file must declare them. |
process (core)
Runs command as-is under bash -c, after sourcing the machine’s
ros_setup if the alternative sets machine:. Use it for anything that isn’t
a ROS package executable or launch file, like a simulator GUI or
ros2 bag record.
| Field | Required | Meaning |
|---|---|---|
command | yes | The shell command to run, verbatim. |
params | no | Ignored. sheppy emits a warning if you set it. |
docker (plugin)
Runs a container named sheppy-<node>, supervised like any other process.
Provided by the sheppy.launch.docker plugin, registered under the docker
kind. The container does not inherit sheppyd’s environment, so set
ROS_DOMAIN_ID and anything else it needs under environment (see
ROS integration). Requires exactly one of:
| Field | Required | Meaning |
|---|---|---|
container | one of container/compose | An inline container definition (e.g. image, network_mode, command). |
compose | one of container/compose | A reference to an existing compose file: needs file and service. |
params | no | If non-empty, always written to a params file that’s mounted read-only into the container and passed via --ros-args --params-file. |
ros_node_name | no | Scopes the written params file to that node name; without it the params apply under the ROS wildcard /**. |
Which compose keys sheppy translates
The same table applies to an inline container and to a service read from a
compose file. sheppy borrows compose’s vocabulary and turns each key into a
docker run flag; it does not run compose.
| Compose key | Becomes |
|---|---|
image, command, entrypoint | The image and its argv. |
environment, env_file | -e, --env-file |
volumes, tmpfs, volumes_from, read_only | -v (short and long form), --tmpfs, --volumes-from, --read-only |
devices, device_cgroup_rules, gpus | --device, --device-cgroup-rule, --gpus (short form only, e.g. gpus: all) |
network_mode, ipc, pid, uts, userns_mode, cgroup, cgroupns_mode | --network, --ipc, --pid, --uts, --userns, --cgroupns, --cgroupns |
ports, expose | -p (short host:container form only), --expose |
hostname, domainname, mac_address, extra_hosts, dns, dns_search, dns_opt | --hostname, --domainname, --mac-address, --add-host, --dns, --dns-search, --dns-option |
privileged, cap_add, cap_drop, security_opt, user, group_add | --privileged, --cap-add, --cap-drop, --security-opt, -u, --group-add |
ulimits, sysctls, shm_size, pids_limit | --ulimit, --sysctl, --shm-size, --pids-limit |
cpus, cpuset, cpu_shares, cpu_period, cpu_quota, cpu_rt_period, cpu_rt_runtime, cpu_count, cpu_percent | The matching --cpu* flags. |
mem_limit, mem_reservation, memswap_limit, mem_swappiness, oom_kill_disable, oom_score_adj | --memory, --memory-reservation, --memory-swap, --memory-swappiness, --oom-kill-disable, --oom-score-adj |
labels, label_file, annotations | --label, --label-file, --annotation |
working_dir, init, tty, stdin_open, stop_signal | -w, --init, --tty, --interactive, --stop-signal |
runtime, platform, isolation, cgroup_parent, storage_opt, pull_policy | --runtime, --platform, --isolation, --cgroup-parent, --storage-opt, --pull |
ulimits accepts both compose forms — rtprio: 99 becomes --ulimit rtprio=99,
and nofile: {soft: 1024, hard: 4096} becomes --ulimit nofile=1024:4096.
Keys sheppy ignores, with a warning naming the reason: restart,
depends_on, healthcheck, stop_grace_period, post_start, pre_stop
(sheppy owns lifecycle); build (sheppy runs images, it doesn’t build them);
container_name, scale, profiles, extends; networks, links,
external_links; configs, secrets; develop; logging, attach; and
blkio_config.
Any other key is a validation error, with a did you mean suggestion —
ulimit: 99 is rejected rather than silently dropped. For an inline
container the error fails manifest validation; for a compose reference it
surfaces as a warning when the node launches.
Relative host paths in volumes and env_file are passed to docker run
unchanged, so they resolve against sheppyd’s working directory, not the
manifest’s. Use absolute paths. The compose file path is the exception: it
is resolved relative to the manifest.
Things that surprise people
privileged: truedoes not raise rlimits. Capabilities and rlimits are separate mechanisms: a privileged container still getsRLIMIT_RTPRIOof 0, sosched_setscheduler(SCHED_FIFO, …)fails withEPERMno matter which capabilities it holds. A real-time node needscap_add: [SYS_NICE]andulimits: {rtprio: 99, memlock: -1}. Both are necessary and neither is sufficient — the host also has to be RT-tuned (isolcpus,nohz_full,rcu_nocbs, CPU affinity), which the container contract cannot express. A successfululimitsdeclaration does not mean you have real-time.machines[].useris required, not optional. The loader errors if it’s missing or empty, same asnameandhost.select:accepts exactly one value:single. Anything else is a validation error.paramson aprocessalternative are ignored, with a warning at load time —processrunscommandverbatim and has nowhere to splice parameters in.publishes/subscribesare documentation only. sheppy stores and displays them but never checks them against the live ROS graph — nothing flags a starved subscription today.machine:does not launch remotely. It selects that machine’sros_setupto source before the command and is shown in the TUI’s host column and detail panel — butsheppyditself always runs locally, and thedockerlauncher doesn’t readalt.machine, so container alternatives get noros_setupsourcing at all.- Nodes get
sheppyd’s environment, not your current shell’s.sheppydtook it from the terminal that first launched something. See ROS integration.