You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d24c6af
Browse filesBrowse the repository at this point in the historyBrowse files
- lpb.py: first-boot health probe of the lemonade server in --ssh/--web
modes (TTY): unreachable -> prompt for the real host, then API key with
default; resolved URL/key passed to the container as LPB_LEMONADE_* so
the non-interactive first-boot setup (lpb-config setup) gets the right
server (lemonade on a different host than 127.0.0.1)
- static passthrough always: shell env LPB_/bare LEMONADE_BASE_URL &
LEMONADE_API_KEY, then lpb.conf.env (LPB_ wins)
- foreground Pi/shell modes: no host prompt (in-container interactive
wizard handles it, pre-filled from the same env)
- testharness: deterministic non-TTY stdin default (no input() hangs)
- tests: test_lpb_lemonade.py (9 tests), registered in test_lpb.py
- docs: README, lpb-cli (new section), env-vars, lpb-config
|`LPB_LEMONADE_BASE_URL`|`http://127.0.0.1:13305/v1`| Lemonade server URL — passed to the container; on a first boot (`--ssh`/`--web`) the launcher health-checks it and prompts for the real host if unreachable |
32
+
|`LPB_LEMONADE_API_KEY`|`lemonade`| Lemonade API key — passed to the container for the first-boot setup wizard |
31
33
|`GHCR_USERNAME`|`lpb-stack`| Registry user for pulls |
32
34
35
+
(The bare `LEMONADE_BASE_URL` / `LEMONADE_API_KEY` names are also accepted on the host; the `LPB_` form wins.)
36
+
33
37
## Runtime Defaults (baked into the image via `lpb.conf.env`)
Copy file name to clipboardExpand all lines: doc/lpb-config.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ see [lpb-devstack reference](lpb-devstack.md).
39
39
| Command | Description |
40
40
|---|---|
41
41
|`lpb-config setup`| Interactive first-run setup: lemonade provider (auth.json), default model (settings.json), lpb-memory config. Runs automatically on first boot (start.sh); idempotent — re-run with `--reconfigure` to change server/model |
42
-
|`lpb-config setup --non-interactive`| Same, no prompts — `LEMONADE_BASE_URL` / `LEMONADE_API_KEY` env + defaults (used on TTY-less first boots) |
42
+
|`lpb-config setup --non-interactive`| Same, no prompts — `LEMONADE_BASE_URL` / `LEMONADE_API_KEY` env + defaults. On TTY-less first boots the `lpb` launcher passes them in (first-boot prompt in `--ssh`/`--web` modes, see `lpb-cli.md`) |
0 commit comments