Skip to main content
Version: 0.15.0

Installing

What was built is installed as a release is, by hand, from ~/yoke-stage, where the build left the programs and the packaging inputs. The script published with a release installs that release's files and not a build of your own. Installing starts nothing.

Nothing here needs root. Yoke is installed for the account running the commands, for the application form.

The programs go in a directory on your PATH. They are in ~/yoke-stage, with the packaging inputs beside them under packaging/; the composer goes with them where this machine writes applications:

mkdir -p ~/.local/bin
install -m 0755 ~/yoke-stage/yoke ~/yoke-stage/yoke-core ~/yoke-stage/yoke-guardian ~/yoke-stage/yoke-auth ~/.local/bin/
install -m 0755 ~/yoke-stage/yoke-compose ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"

The manager needs an install root it may write into. The host's own, /var/lib/yoke/apps, exists only where Yoke is installed for the whole host; for your account alone, make one of your own and say where it is in the manager's configuration. The directory has to be in a group of yours, set-group-id, writable by the group and not by others — the manager checks exactly these properties and refuses a root that lacks one, naming it (configuration).

mkdir -p ~/yoke/apps && chmod 2775 ~/yoke/apps
mkdir -p ~/.config/yoke
echo "install_root: $HOME/yoke/apps" > ~/.config/yoke/manager.conf

The guardian's user unit names /usr/bin, so point it at where the program is:

mkdir -p ~/.config/systemd/user
sed "s|/usr/bin/yoke-guardian|$HOME/.local/bin/yoke-guardian|" ~/yoke-stage/packaging/yoke-guardian.service \
> ~/.config/systemd/user/yoke-guardian.service

For your instances to come back when the machine boots, enable the unit and let your account's services run without a login:

systemctl --user daemon-reload
systemctl --user enable yoke-guardian.service
loginctl enable-linger "$USER"

After installing​

Check it: the manager answers, and has nothing installed and no instance yet.

yoke app list && yoke instance list && echo installed
installed

Nothing else is needed to run an application. The manager starts your account's guardian itself the first time an instance needs one, and the guardian exits when it has nothing left to watch.

What is installed​

ProgramIs
yokethe manager: installs applications, runs instances, administers a running one
yoke-corethe Core: supervises the units, routes their traffic, keeps their state
yoke-guardianstarts each of an account's instances and brings it back when it fails
yoke-authasks the host's authentication service, for a channel that signs its callers in
yoke-composethe composer, on a workstation: makes, checks and builds an application's project

Say that you installed it: I installed Yoke asks three things — which form, which host or board, which release — and nothing else. It is how the project learns where Yoke runs without its help.

Next, write an application: Building an application.