Skip to content

kern v0.56.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 18:07
· 451 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.56.0

Windows, from 0.51.x: run the installer once more (irm https://raw.githubusercontent.com/getkern/kern/main/install.ps1 | iex). kern self-update in 0.51.x cannot reach the download host from kern's WSL distro; from 0.56.0 on it can.

Changed behaviour

If you come from 0.51.x, two defaults change. Each has a one-flag way back:

  • kern exec <box> runs as the box's own user (the image's USER, or --user); kern exec -u root <box> enters as root. Scripts that install packages with kern exec box apk add ... on such an image: add -u root.
  • kern compose up without -d follows the stack whatever stdout is, and returns when every service has exited (Ctrl-C stops the stack). In a script or CI, -d returns at once as before; --wait implies -d; --exit-code-from <service> returns that service's exit code.
  • kern up reads every flag it is given, and refuses one it does not have. --exit-code-from, --abort-on-container-exit, --wait-timeout, --build, --no-build and service names were taken and not acted on, so kern up --exit-code-from tests reported 0 whatever the tests did. A flag the shorthand does not have now stops it, naming the flag: the explicit kern compose <file> up ... takes the rest.

Signed releases

  • Every asset is signed with the release key: the Linux tarballs, kern-windows-x86_64.exe and the WSL distro.
  • The WSL distro carries the released kern, byte for byte; the release workflow fails if they differ.
  • install.sh refuses a release from 0.51.2 on that has no signature, or whose signature names another version.
  • install.ps1 checks the signatures of kern.exe and the distro when minisign is installed; on an update, the kern installed before checks them. It ends by saying, file by file, what was checked.
  • install.ps1 takes KERN_WSL_DISTRO and KERN_INSTALL_DIR for a trial install next to your own.

Compose and boxes

  • http://<service>.<project>.localhost for each published service, and http://<box>.kern.localhost for kern box -d -p; kern ps --format '{{.URL}}' and --json carry it.
  • --progress auto|tty|plain|json|quiet on compose and build: a live view on a terminal, step lines in CI, one JSON event per line.
  • compose ps says Restarting (N) between two runs, and Up counts from the last start; a stopped-and-started service is listed once.
  • FROM image:${VAR:-default} and the other modifiers expand.
  • A restarted service no longer leaves its old network helper running.
  • An attached up shows what this run printed, not every earlier run of the service; under --exit-code-from the service that ended reads as completed.
  • On WSL: files on C:\ belong to the distro's user and keep chown/chmod, so a database can keep its data in a project folder; the distro carries zstd and /etc/localtime.
  • kern update --timeout, --egress-deny and address ranges in --egress-allow.

kern sandbox 0.3.0 (Python and Node)

Labels and Sandbox.list(), get_metrics(), set_timeout(), watch_dir(), ports and get_host(), start_cmd and ready_cmd, pty(), fork(n), egress_deny, and each call's code and output kept for kern sandbox show.

Full list: CHANGELOG.md.