Skip to Content
sheppyManifest reference

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

FieldRequiredTypeMeaning
machinesnolist of machineDeclares the machines an alternative can reference. Omit entirely to run everything locally.
nodesno*list of nodeThe 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
FieldRequiredTypeMeaning
nameyesstringReferenced by an alternative’s machine:. Must be unique; the loader errors if empty or missing.
hostyesstringStored on the machine record. The loader errors if empty or missing.
useryesstringStored on the machine record. The loader errors if empty or missing; see below.
ros_setupnostringPath 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: [...]
FieldRequiredTypeMeaning
nameyesstringMust be unique across the manifest; the loader errors on a duplicate.
descriptionnostringStored, but rendered nowhere in the TUI today.
selectnostringDefaults to single, the only accepted value — see below.
alternativesyesnon-empty list of alternativeThe interchangeable ways to do this job.

Alternatives

Common fields, valid regardless of kind:

FieldRequiredTypeMeaning
idyesstringUnique within its node; the loader errors on a duplicate.
kindyesstringMust name a registered launcher — one of executable, launch_file, process, docker, or a kind added by a third-party plugin.
machinenostringMust 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.
paramsnomappingHow it’s used depends on kind — see the per-kind sections below.
publishesnolist of stringDocumentation only — see below.
subscribesnolist of stringDocumentation 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.

KindSourceRequiresOptional fields
executablecorepackage, executableparams, machine, publishes, subscribes
launch_filecorepackage, launch_fileparams, machine, publishes, subscribes
processcorecommandmachine, publishes, subscribes (params accepted but ignored)
dockerplugin (sheppy.launch.docker)exactly one of compose or containerparams, ros_node_name, machine, publishes, subscribes

executable (core)

Runs ros2 run <package> <executable>.

FieldRequiredMeaning
packageyesROS package name.
executableyesExecutable name within the package.
paramsnoAppended as --ros-args -p key:=value for each entry.

launch_file (core)

Runs ros2 launch <package> <launch_file>.

FieldRequiredMeaning
packageyesROS package name.
launch_fileyesLaunch file name within the package.
paramsnoAppended 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.

FieldRequiredMeaning
commandyesThe shell command to run, verbatim.
paramsnoIgnored. 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:

FieldRequiredMeaning
containerone of container/composeAn inline container definition (e.g. image, network_mode, command).
composeone of container/composeA reference to an existing compose file: needs file and service.
paramsnoIf 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_namenoScopes 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 keyBecomes
image, command, entrypointThe 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_percentThe 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: true does not raise rlimits. Capabilities and rlimits are separate mechanisms: a privileged container still gets RLIMIT_RTPRIO of 0, so sched_setscheduler(SCHED_FIFO, …) fails with EPERM no matter which capabilities it holds. A real-time node needs cap_add: [SYS_NICE] and ulimits: {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 successful ulimits declaration does not mean you have real-time.
  • machines[].user is required, not optional. The loader errors if it’s missing or empty, same as name and host.
  • select: accepts exactly one value: single. Anything else is a validation error.
  • params on a process alternative are ignored, with a warning at load time — process runs command verbatim and has nowhere to splice parameters in.
  • publishes/subscribes are 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’s ros_setup to source before the command and is shown in the TUI’s host column and detail panel — but sheppyd itself always runs locally, and the docker launcher doesn’t read alt.machine, so container alternatives get no ros_setup sourcing at all.
  • Nodes get sheppyd’s environment, not your current shell’s. sheppyd took it from the terminal that first launched something. See ROS integration.

Edit this page on GitHub