Getting started
Installation
Install Jokku on a fresh server with one command, then run commands from your laptop over SSH.
Requirements#
- A fresh Ubuntu or Debian server.
- Ports 80 and 443 free.
- KVM. Bare metal works, or a virtual machine with nested virtualization turned on (on Proxmox, set the CPU type to
host). - A CPU from 2011 or newer, which Firecracker needs: Intel Sandy Bridge or AMD Bulldozer and later. Jokku is tested on Intel Skylake and newer.
Install#
That's it. The SSH keys you used to log in to the server can now deploy apps and run commands.
The installer downloads the jokku binary, checks it against the release's checksums, then runs jokku setup. Setup creates the jokku user, its directories and services, and installs the pinned Firecracker and BuildKit that Jokku runs with. Each step checks before it changes anything, so running it again is safe.
You can set a few options in the environment:
The splash screen#
Setup asks whether to greet you with Jokku's splash screen when you log in to the server. It shows the logo and live figures:
- The cluster: apps, nodes, instances and the last deploy.
- The server itself: address, load, memory, disk and uptime.
- Anything that needs a look: a node that's down, an app short of healthy instances, or system updates waiting.
It takes the place of the system's own welcome text. Warnings, such as a restart needed after updates, still show. You can turn it on or off at any time:
If you already had your own /etc/update-motd.d/00-jokku, Jokku keeps it, and splash:disable puts it back. Setup asks once per server: during the install, or during the next update if nobody was at a terminal to answer.
Run commands#
Run commands from your laptop over SSH, with nothing installed locally, or on the server itself with sudo jokku <command>:
The rest of these docs assume this alias on your laptop:
Give others access#
To let someone else deploy, add their public key:
Every key is an admin, as in Dokku without its ACL plugin. The key's name is recorded on each deploy, so you can see who shipped what.
Ports#
The last two only matter once you add more servers. An edge needs only these open: TCP 80 and 443, UDP 443 and UDP 51820. The servers behind it need none.
Repair a server#
jokku setup brings the server to the state the installed release needs. Run it again if something on the server was changed or removed: