config: define Daytona environment from Dockerfile for smoke workflow

Runs were falling back to the built-in `default` environment (a bare
daytona-medium snapshot with no Rust toolchain), so every Rust stage in
the smoke workflow failed with exit 127 (cargo/rustc not found). The old
[run.sandbox] config that built a custom snapshot was dropped in the
move to named environments (#360) and never ported.

Add a `fabro-dev` named environment that builds the Daytona snapshot from
.fabro/Dockerfile (Rust + nightly-2026-04-14 + cargo-nextest + bun), with
8 CPU / 16GB RAM, and select it via [run.environment].

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-05-29 09:26:23 -04:00
parent 6a98cf4dbf
commit ba2c1cc168
No known key found for this signature in database

View file

@ -4,6 +4,26 @@ _version = 1
enabled = true
draft = false
[run.environment]
id = "fabro-dev"
[environments.fabro-dev]
provider = "daytona"
[environments.fabro-dev.image]
dockerfile = { path = "Dockerfile" }
[environments.fabro-dev.resources]
cpu = 8
memory = "16GB"
disk = "20GB"
[environments.fabro-dev.lifecycle]
auto_stop = "30m"
[environments.fabro-dev.labels]
repo = "fabro-sh/fabro"
# [[run.hooks]]
# id = "cargo-fmt"
# name = "cargo-fmt"