mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-25 01:01:29 +00:00
Fabro-Run: 01KS9BXFGAZ32SGNRE4YJV1354
Fabro-Completed: 7
Fabro-Checkpoint: e2b2831ff6
⚒️ Generated with [Fabro](https://fabro.sh)
33 lines
979 B
Text
33 lines
979 B
Text
---
|
|
title: "Devcontainers"
|
|
description: "Using repository devcontainer metadata with Fabro environments"
|
|
---
|
|
|
|
Named environments are the supported configuration surface for run execution. Define reusable environments under `[environments.<slug>]` and select one with `[run.environment] id = "..."`.
|
|
|
|
Devcontainer-specific run configuration (`[run.sandbox] devcontainer = true`) has been removed with the named environments configuration break. To use a devcontainer-style image today, build or reference it through an environment image:
|
|
|
|
```toml
|
|
[run.environment]
|
|
id = "dev"
|
|
|
|
[environments.dev]
|
|
provider = "docker"
|
|
|
|
[environments.dev.image]
|
|
ref = "ghcr.io/acme/project-devcontainer:latest"
|
|
```
|
|
|
|
For Daytona snapshot creation, provide a Dockerfile path on the selected environment:
|
|
|
|
```toml
|
|
[run.environment]
|
|
id = "cloud-dev"
|
|
|
|
[environments.cloud-dev]
|
|
provider = "daytona"
|
|
|
|
[environments.cloud-dev.image]
|
|
ref = "project-dev"
|
|
dockerfile = { path = ".devcontainer/Dockerfile" }
|
|
```
|