Use daytona-medium snapshot as default Daytona sandbox

The bare ubuntu:22.04 image lacks git and other tooling, causing git
checkpoints to fail. Switch to the daytona-medium snapshot which has
standard dev tools pre-installed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-14 12:10:50 -04:00
parent 29bd80824b
commit 39191be1a5
No known key found for this signature in database

View file

@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize};
use fabro_github::GitHubAppCredentials;
const WORKING_DIRECTORY: &str = "/home/daytona/workspace";
const DEFAULT_IMAGE: &str = "ubuntu:22.04";
const DEFAULT_SNAPSHOT: &str = "daytona-medium";
/// Configuration for a Daytona cloud sandbox.
///
@ -543,10 +543,9 @@ impl Sandbox for DaytonaSandbox {
snapshot: snap_cfg.name.clone(),
})
} else {
daytona_sdk::CreateParams::Image(daytona_sdk::ImageParams {
daytona_sdk::CreateParams::Snapshot(daytona_sdk::SnapshotParams {
base: self.base_params(),
image: daytona_sdk::ImageSource::Name(DEFAULT_IMAGE.to_string()),
resources: None,
snapshot: DEFAULT_SNAPSHOT.to_string(),
})
};