Skip to main content
Version: 0.15.1

Installing

Installing Yoke obtains a release, checks every file against the digest published with it, puts the programs where the host finds them and creates the directories Yoke needs. It starts nothing.

Install Yoke on a Linux host — no root needed

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

curl --proto '=https' --tlsv1.2 -sSfL https://github.com/yoke-project/yoke/releases/latest/download/yoke-install.sh | sh -s -- --install account
checking against the digests published with 0.15.1
downloading yoke-0.15.1-linux-amd64.tar.gz
downloading yoke-conformance-0.15.1-linux-amd64.tar.gz
kept /home/you/yoke-release/yoke-0.15.1-linux-amd64.tar.gz, checked
kept /home/you/yoke-release/yoke-conformance-0.15.1-linux-amd64.tar.gz, checked
installed yoke yoke-core yoke-guardian yoke-auth yoke-compose in /home/you/.local/bin
made the install root /home/you/yoke/apps, named in /home/you/.config/yoke/manager.conf
installed the guardian's user unit in /home/you/.config/systemd/user

Yoke 0.15.1 for amd64 is in /home/you/yoke-release.
Installed for this account. Check it: yoke app list && yoke instance list && echo installed

The script is yoke-install.sh, published with every release. It checks that this is Linux on amd64 or arm64 and that the tools it needs are there; downloads the release's files and checks each against the digest published with it, keeping them in ~/yoke-release only when every one matches; puts the programs in ~/.local/bin; makes an install root of your own, ~/yoke/apps, and names it in ~/.config/yoke/manager.conf unless that file exists, which it never rewrites; and installs the guardian's user unit. It stops at the first thing it cannot do, saying what, and ends by saying what this host lacks that Yoke would use, such as PAM or systemd.

AddTo
--at-bootenable the guardian's unit and let your account's services run without a login, so that your instances come back when the machine boots
--version <x.y.z>install a release other than the newest
--bin <path>put the programs somewhere other than ~/.local/bin

What the check protects against is a file damaged or replaced on the way. The script, the files and the manifest all come from the release on GitHub, so they are as trustworthy as that account. To read the script before it runs, save it and run the copy:

mkdir -p ~/yoke-release
curl --proto '=https' --tlsv1.2 -sSfL -o ~/yoke-release/yoke-install.sh \
https://github.com/yoke-project/yoke/releases/latest/download/yoke-install.sh
sh ~/yoke-release/yoke-install.sh --install account

On a machine that cannot reach GitHub​

The release is obtained on a machine that can, and carried. The script obtains it without installing when --install is left out, for the architecture --arch names, into the directory --dir names; on the other machine it finds the files there, checks them against the digests it carries, and downloads nothing. Here, with the other machine's architecture, arm64 or amd64:

mkdir -p ~/yoke-carry
curl --proto '=https' --tlsv1.2 -sSfL -o ~/yoke-carry/yoke-install.sh \
https://github.com/yoke-project/yoke/releases/latest/download/yoke-install.sh
sh ~/yoke-carry/yoke-install.sh --arch arm64 --dir ~/yoke-carry/yoke-release
scp -r ~/yoke-carry/yoke-install.sh ~/yoke-carry/yoke-release <machine>:

There, in an SSH session, install from what you carried, naming the directory:

sh ~/yoke-install.sh --dir ~/yoke-release --install account
checking against the digests published with 0.15.1
using /home/you/yoke-release/yoke-0.15.1-linux-arm64.tar.gz, already kept and checked
using /home/you/yoke-release/yoke-conformance-0.15.1-linux-arm64.tar.gz, already kept and checked

The script is the one that obtained the files, so it checks them against its own release's digests and reads nothing from the network. A machine that only runs applications needs neither the composer nor the conformance suite: --runtime-only, given both here and there, leaves them out.

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.