Repository navigation
kern v0.56.0
·
451 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
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'sUSER, or--user);kern exec -u root <box>enters as root. Scripts that install packages withkern exec box apk add ...on such an image: add-u root.kern compose upwithout-dfollows the stack whatever stdout is, and returns when every service has exited (Ctrl-C stops the stack). In a script or CI,-dreturns at once as before;--waitimplies-d;--exit-code-from <service>returns that service's exit code.kern upreads every flag it is given, and refuses one it does not have.--exit-code-from,--abort-on-container-exit,--wait-timeout,--build,--no-buildand service names were taken and not acted on, sokern up --exit-code-from testsreported 0 whatever the tests did. A flag the shorthand does not have now stops it, naming the flag: the explicitkern compose <file> up ...takes the rest.
Signed releases
- Every asset is signed with the release key: the Linux tarballs,
kern-windows-x86_64.exeand the WSL distro. - The WSL distro carries the released kern, byte for byte; the release workflow fails if they differ.
install.shrefuses a release from 0.51.2 on that has no signature, or whose signature names another version.install.ps1checks the signatures ofkern.exeand 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.ps1takesKERN_WSL_DISTROandKERN_INSTALL_DIRfor a trial install next to your own.
Compose and boxes
http://<service>.<project>.localhostfor each published service, andhttp://<box>.kern.localhostforkern box -d -p;kern ps --format '{{.URL}}'and--jsoncarry it.--progress auto|tty|plain|json|quietoncomposeandbuild: a live view on a terminal, step lines in CI, one JSON event per line.compose pssaysRestarting (N)between two runs, andUpcounts 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
upshows what this run printed, not every earlier run of the service; under--exit-code-fromthe service that ended reads as completed. - On WSL: files on
C:\belong to the distro's user and keepchown/chmod, so a database can keep its data in a project folder; the distro carrieszstdand/etc/localtime. kern update --timeout,--egress-denyand 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.