Repository navigation
Conversation
jbouder
marked this pull request as draft
October 9, 2026 23:52
A pixi-launched example that runs an interactive shell in the browser: ttyd shares a bash session over a websocket, rendered with xterm.js. No Python code and no image build — pixi.toml pulls ttyd plus a working toolset from conda-forge (vim, nano, git, gh, curl, wget, ssh, jq, yq, ripgrep, fd, bat, htop, tree, less, tmux, fzf, make, zip/unzip, Python). SSO-gated (access.public: false) because it is a shell. App pods run as UID 65532 with no /etc/passwd entry, so bash shows "I have no name!" and whoami/ssh fail. terminal.sh runs per session and fixes this with nss_wrapper where conda-forge builds it (linux-64), falling back to a $USER-based prompt elsewhere (e.g. linux-aarch64 kind nodes); bashrc adds a prompt, default git identity and a few aliases. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011pSHMjZBVyZL2ufWiiveTZ
jbouder
force-pushed
the
feat/web-terminal-example
branch
from
October 10, 2026 13:06
17b5d3d to
d569028
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/web-terminal/— an interactive bash shell in the browser via ttyd, launched by the pack's pixi runtime. No Python code and no image build:pixi.tomlpulls ttyd plus a working toolset from conda-forge — vim, nano, git, gh, curl, wget, ssh, jq, yq, ripgrep, fd, bat, htop, tree, less, tmux, fzf, make, zip/unzip, Python 3.12. SSO-gated (access.public: false) because it's a shell.Files:
pixi.toml,pixi.lock,terminal.sh(per-session launcher),bashrc,nebari-app.yaml; plus a README row.Notes for reviewers
/etc/passwdentry, so bash showsI have no name!andwhoami/sshfail.terminal.shfixes this with nss_wrapper where conda-forge builds it (linux-64) and falls back to a$USERprompt elsewhere (linux-aarch64, e.g. kind on Apple Silicon). The proper fix is in the pack — a passwd entry for 65532 in thepythonImage, or an operator-mounted/etc/passwd— and would remove the per-app hack. Happy to follow up.ttyd -Wis required: ttyd ≥ 1.7 defaults to read-only.Test plan
pixi install --locked; all tools resolve in the env;pixi run startserves ttyd on 8080 (200,101websocket upgrade);terminal.shsession starts cleanly.nebari-local, kind/aarch64): AppRunning; all 21 tools + python resolve in/app/.pixi/envs/default/bin; anonymous request gets a302to Keycloak; session opens with a cleannebari@<pod>:~$prompt.🤖 Generated with Claude Code
https://claude.ai/code/session_011pSHMjZBVyZL2ufWiiveTZ