Skip to content

Universal: install and auto-start ttyd on port 3010 (Dockerfile + CodeSandbox tasks)#3

Open
lordspline wants to merge 1 commit intomainfrom
capy/integrate-ttyd-termi-4452ecf6
Open

Universal: install and auto-start ttyd on port 3010 (Dockerfile + CodeSandbox tasks)#3
lordspline wants to merge 1 commit intomainfrom
capy/integrate-ttyd-termi-4452ecf6

Conversation

@lordspline
Copy link
Collaborator

Summary

  • Install ttyd (static linux x86_64) in universal devcontainer image
  • Auto-start ttyd on port 3010 via CodeSandbox tasks so terminal is always available at https://{instanceId}-3010.csb.app
  • Keep existing FastAPI (port 8000) and code-server (port 8080) tasks intact

Details

  • .devcontainer/Dockerfile: curl ttyd v1.7.7 static binary to /usr/local/bin/ttyd and chmod +x
  • .codesandbox/tasks.json: add a new task to run "/usr/local/bin/ttyd -p 3010 bash" with runAtStart: true and preview port 3010

Why

  • Provide an interactive terminal per jam without modifying FastAPI runtime; CodeSandbox exposes port 3010 automatically when listening.

Notes / TODO

  • No auth in V1; UI is gated in Scout; add TODO for auth and ARM64 in follow-up.

₍ᐢ•(ܫ)•ᐢ₎ Generated by Capy (view task)

…versal template — install static binary and auto-start on port 3010 alongside FastAPI; avoid touching app code

Co-authored-by: Capy <capy@capy.ai>
@lordspline lordspline added the capy PR created by Capy label Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capy PR created by Capy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments