Repository navigation
Conversation
pre_spawn derives the browser-facing API URL from PUBLIC_URL_TEMPLATE so the same config works with SSH port forwarding or Daytona preview URLs.
Docker-in-Docker base with every binary ecluse and the hooks shell out to; bootstrap starts dockerd, checks dependencies and untracked files.
Reads a session's ports from ecluse env over SSH and forwards them all.
hefgi
force-pushed
the
examples/daytona
branch
from
November 3, 2026 15:47
af4f3ac to
cd12d35
Compare
This branch has not been deployed
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
Adds
examples/daytona/, which shows how to run ecluse (hybrid mode) inside a Daytona sandbox instead of on a laptop..ecluse.toml: Express + Vite with Postgres/Redis.pre_spawnwrites.env.local, waits onpg_isready, and migrates. The browser-facing API URL comes fromPUBLIC_URL_TEMPLATE, so the same config works with SSH forwarding (localhost) or Daytona preview URLs.Dockerfile:docker:28-dindplus git, tmux, lsof, jq, Node, postgresql16-client, and the ecluse musl release binary.bootstrap.sh: startsdockerd, checks required binaries, setsPUBLIC_URL_TEMPLATE, and warns about missing untracked files (.ecluse.toml,.env).forward-ports.sh: runs on the laptop, reads a session's ports viaecluse envover SSH, and forwards all of them.README.md: setup steps, the two browser-access options, and gotchas (no Docker daemon, hooks that reference laptop paths, sandbox restarts).No code changes.
Test plan
ecluse validatepasses on the example configshellcheckis clean on both scriptsdocker buildworks; all required binaries are present andecluse --versionreports 0.3.1ecluse-bootstrapin a--privilegedcontainer starts dockerdecluse upin a real Daytona sandbox, including whether Daytona sandboxes allow DinD