Skip to main content
Version: 0.15.1

Shipping it

An application leaves the workstation in one of two forms, and the units are the same in both. What each form is, where its files go and what differs between them is an application and an application as a service; this page is what you do to ship the example in each.

The package, on a host​

The host takes the package as the workstation did: yoke app install, yoke instance create, yoke instance start, and the grants its Plugins need. Installing checks the package's head, then the executables against the digests the descriptor pins, and runs nothing (installing). A host whose policy requires a signature refuses an unsigned package: yoke-compose build --sign signs it (trust and sealing).

A value that differs per site is a parameter, declared in the project with yoke-compose add parameter and supplied at creation with yoke instance create --params; a secret is supplied with yoke instance set-secret, never written in the project (instances, secrets).

The service form​

In the service form there is no package. Each Plugin's executable goes to /usr/lib/yoke/plugins/<identity> — com.example.greeter, com.yoke.system-info — and its Manifest to /etc/yoke/plugins.d/<identity>/manifest.yaml, each as the distribution's file; the composition is written with yoke-compose --file, installed in /etc/yoke/deployments/hello.yaml, and linked from /etc/yoke/deployment.yaml (what it is made of).

yoke service acts on the one deployment the init system activates: yoke service check runs the gate over it, yoke service start gates and then asks the init system to start yoke.service, and yoke service status says what the init system and the instance each report (the command line). An interface client reaches its channel with iface.Service instead of iface.Application.

An image​

A device built with the Yocto Project carries either form, with Yoke's layer, meta-yoke. In the service form the recipe of a Plugin is the distribution's package and installs its two files, and the image's own recipe is the administrator, installing the composition and enabling yoke.service. On an embedded device builds an image with Yoke in it, and the reference says which packages go on a device and shows both forms with the layer's two example images (the layer).