gokrazy: add prototype Tailscale appliance, build tooling, docs

Updates #1866

Change-Id: I546316cb833bf2919e0d6f55cdc9951f375f165b
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2024-06-02 14:57:43 -07:00
committed by Brad Fitzpatrick
parent 0b1a8586eb
commit e84751217a
35 changed files with 975 additions and 0 deletions

12
gokrazy/tsapp/README.md Normal file
View File

@@ -0,0 +1,12 @@
# Tailscale Appliance
This is the definition of the Gokrazy Tailscale Appliance (tsapp) image.
See the parent directory for context.
## File contents
The `config.json` is a Gokrazy config.
The `usr-dir.tar` is a single symlink named `bin` pointing to `/user`. We write it to `/usr/bin => /user` so the Busybox `ash` shell's default `$PATH` includes `/user`, where the `tailscale` CLI is.
The `builddir` is the Gokrazy build environment, defining each program's `go.mod`.