Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions universal/.codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
"resume": false
}
},
"ttyd": {
"name": "start web terminal (ttyd)",
"command": "/usr/local/bin/ttyd -p 3010 bash",
"runAtStart": true,
"preview": { "port": 3010 },
"restartOn": { "clone": false, "resume": false }
},
"code-server": {
"name": "start code-server",
"command": "code-server --bind-addr 0.0.0.0:8080 --auth none /project/workspace",
Expand Down
5 changes: 5 additions & 0 deletions universal/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ RUN apt update && \
# Install code-server
RUN curl -fsSL https://code-server.dev/install.sh | sh

# Install ttyd (web terminal) - V1: linux/amd64 only
# TODO: Add ARM64 support (alternate binary URL/detection)
RUN curl -fsSL https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.x86_64 -o /usr/local/bin/ttyd \
&& chmod +x /usr/local/bin/ttyd

# The project will be mounted in /workspace by default

# Every new shell will open inside the built container
Expand Down