Files
harmony/examples/lamp/src/main.rs
Jean-Gabriel Gill-Couture 35fcc295aa ADR: Default runtime for harmony workloads
This ADR proposes to use k3s as a default runtime on linux and k3d on other platforms supporting docker
2025-03-17 15:48:14 -04:00

25 lines
613 B
Rust

use harmony::{
data::Version,
maestro::Maestro,
modules::lamp::{LAMPConfig, LAMPScore},
topology::Url,
};
#[tokio::main]
async fn main() {
let lamp_stack = LAMPScore {
name: "harmony-lamp-demo".to_string(),
domain: Url::Url(url::Url::parse("https://lampdemo.harmony.nationtech.io").unwrap()),
php_version: Version::from("8.4.4").unwrap(),
config: LAMPConfig {
project_root: "./php".into(),
..Default::default()
},
};
Maestro::load_from_env()
.interpret(Box::new(lamp_stack))
.await
.unwrap();
}