pub struct ModalProviderConfig {
pub app_name: String,
pub dockerfile: String,
pub working_dir: Option<PathBuf>,
pub timeout_secs: u64,
pub env: HashMap<String, String>,
}Expand description
Configuration for the Modal cloud provider.
Modal provides ephemeral cloud sandboxes with first-class Docker support. This provider integrates directly with Modal APIs without requiring shell command wrappers.
§Example: Custom Dockerfile
[provider]
type = "modal"
app_name = "offload-sandbox"
dockerfile = ".devcontainer/Dockerfile"
working_dir = "/workspace"
timeout_secs = 600Fields§
§app_name: StringModal app name for the sandbox.
This name identifies the Modal application and appears in the Modal dashboard. Should be descriptive and unique within your workspace.
§Example
app_name = "offload-sandbox"dockerfile: StringImage configuration for the sandbox.
A path to the Dockerfile on which this image is based
working_dir: Option<PathBuf>Working directory inside the sandbox.
Test commands will execute from this directory.
timeout_secs: u64Timeout for sandbox operations in seconds.
Applies to both sandbox creation and test execution.
Default: 3600 (1 hour)
env: HashMap<String, String>Environment variables to set for all test processes.
These are merged with (and override) the current environment.
Trait Implementations§
Source§impl Clone for ModalProviderConfig
impl Clone for ModalProviderConfig
Source§fn clone(&self) -> ModalProviderConfig
fn clone(&self) -> ModalProviderConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more