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