Choosing the image
The layer builds Yoke alone in an image of each form: the runtime, the files the init system is given, and nothing an application adds. The form is chosen by a file of its own, added after the machine's on kas's command line; the images are the smallest the Yocto Project builds, with Yoke in them.
Name the form and its image, each in a variable of the shell, as the machine was: the lines below
print nothing, and the next page's commands read them as $form and $image. In a new shell, type them
again.
- Application form
- Service form
meta-yoke/kas/application.yml builds yoke-image: an account, apps, that hosts the
applications. It may install them, being in the group yoke-apps; it lingers, so its user manager runs
at boot with nobody signed in; and its guardian's unit, yoke-guardian.service, is enabled, so the
guardian runs at every boot and brings up every instance whose record wants it running. No
application is installed: one is installed into the account afterwards, as shipping
it does.
form=application
image=yoke-image
| The image holds | For |
|---|---|
yoke-core, yoke | the Core, and the manager the account works with |
yoke-guardian | the guardian, which the account's user manager starts |
yoke-packaging | the units and the configuration the init system is given |
yoke-host | the account, its lingering, and its guardian's unit enabled |
meta-yoke/kas/service.yml builds yoke-service-image: the runtime and the files the service form
reads, with yoke.service installed and left disabled. The unit starts the host's one deployment,
and an image of Yoke alone has none: a deployment is what an application adds — its Plugins' packages
and the composition the image's own recipe installs (a deployment in the service
form).
form=service
image=yoke-service-image
| The image holds | For |
|---|---|
yoke-core, yoke | the Core, and the manager the administrator works with |
yoke-packaging | yoke.service, the service form's directories, and /etc/yoke/core.yaml |
Neither image holds the tools of a workstation, yoke-compose and yoke-conformance, which build and
check an application and have nothing to do on a device.
Both images are starting points, not products: root signs in on the console with no password. That is what lets you look inside the image on the next page. An image for a device in the field is your own, built from your own layer, with the packages the form needs (the layer).