systemprompt_cloud/deploy/
mod.rs1mod dockerfile;
11mod validation;
12
13pub use dockerfile::DockerfileBuilder;
14pub use validation::{
15 get_required_mcp_copy_lines, validate_dockerfile_has_mcp_binaries,
16 validate_dockerfile_has_no_stale_binaries, validate_profile_dockerfile,
17};
18
19use std::path::{Path, PathBuf};
20
21use crate::error::{CloudError, CloudResult};
22
23pub fn find_services_config(root: &Path) -> CloudResult<PathBuf> {
24 let path = root.join("services/config/config.yaml");
25 if path.exists() {
26 return Ok(path);
27 }
28 Err(CloudError::deploy(
29 "Services config not found.\n\nExpected at: services/config/config.yaml",
30 ))
31}
32
33#[must_use]
34pub fn generate_dockerfile_content(project_root: &Path) -> String {
35 DockerfileBuilder::new(project_root).build()
36}