Deploy to the handset from the cluster
Deploy to the handset / build-and-deploy (push) Successful in 2m14s
CI / test (push) Failing after 2m41s

CI builds an arm64 image (compositor, host, chandra-remote, modules) and deploys
the updater pod that installs it on the phone. chandra-remote updates go in live
(SIGUSR2 restarts it in place); the compositor waits for an idle, locked phone or
an approval, and a locked session restarts locked. Host tests: the launcher no
longer draws its label in a narrow panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Opus 5.5 committed 2026-11-29 16:34:12 -08:00
1 parent d2e00b4658
commit 2aa3de5741
14 files changed
+675 -2

No files matched your search

+11
View File
@@ -70,3 +70,14 @@ Chandra includes KMS/libinput/compositor adaptations tailored for mainline Linux
- **Paste (web UI):** `Ctrl+V`, `Ctrl+Shift+V`, `Shift+Insert` (`Cmd+V` on a Mac) put this device's clipboard, text or an image (up to 16 MB, sent as PNG), on the phone's and then press the same keys there. This works over plain HTTP. If something was copied on the phone since the page was last focused, that is pasted instead. The **Paste** button (`KB` bar) and **Paste Image…** (menu) do the same, with `Ctrl+Shift+V` for text in terminals. In the launcher and the password dialog the text is typed in. The browser uploads to `POST /api/clipboard`; the compositor gets the data as a memfd over the control socket (`clipboard-set-fd`, `input-paste`). VNC clients can send text only.
- `https://chandra-6t.tail.site.latha.org/` serves the web UI over HTTPS, tailnet only, from the `chandra-remote` chart in `nandi/cluster` (Caddy on the phone node, proxying to loopback `6080`).
- By default (`~/.config/chandra/remote.conf`), `bind=tailscale`, `bind_loopback=1`, and `auth=none`, binding strictly to the Tailscale `100.64.0.0/10` interface + `127.0.0.1` so any device on the same Tailscale tailnet can connect directly with zero password prompt (`http://<tailscale-dns>:6080/` or `<tailscale-dns>:5900`), even while the handset's physical OLED screen is turned off (`chandra-ctl screen off`). Run `chandra-remote status` to inspect endpoints or `chandra-remote passwd [PASS|--none]` to configure optional password auth.
## Deploying to the phone
Every push to `main` builds an arm64 image ([`handset/Dockerfile`](../handset/Dockerfile)) and deploys it with the `chandra-handset` chart in `nandi/cluster`; the phone is a k3s node, so no SSH or root password is involved. The updater ([`handset/handset.sh`](../handset/handset.sh)) installs `chandra-remote` and its page at once, without ending the session. The compositor, its host and the panel modules need a session restart, so they wait until the phone has been locked with its screen off for 10 minutes, or until approved:
```sh
kubectl -n chandra-handset exec deploy/chandra-handset -- handset status
kubectl -n chandra-handset exec deploy/chandra-handset -- handset approve # closes the phone's apps
```
A locked session restarts locked (`/run/chandra-start-locked`), and a session that doesn't come up is rolled back. The image build runs a smoke test (compositor, image paste) and the updater's tests (`handset/test_handset.sh`).