feat(iso): Create generate-iso command (#192)
## Tasks - [x] Add ctrl-c handler to kill spawned children - [x] add more args to support all variables - [x] Add integration test
This commit is contained in:
parent
4634f40840
commit
e6cce3d542
25 changed files with 737 additions and 201 deletions
|
|
@ -23,45 +23,8 @@ pub(crate) static RT: Lazy<Runtime> = Lazy::new(|| {
|
|||
pub(crate) mod test {
|
||||
use std::sync::LazyLock;
|
||||
|
||||
use blue_build_recipe::{Module, ModuleExt, Recipe};
|
||||
use blue_build_utils::cowstr_vec;
|
||||
use indexmap::IndexMap;
|
||||
|
||||
pub const TEST_TAG_1: &str = "test-tag-1";
|
||||
pub const TEST_TAG_2: &str = "test-tag-2";
|
||||
|
||||
pub static TIMESTAMP: LazyLock<String> = LazyLock::new(blue_build_utils::get_tag_timestamp);
|
||||
|
||||
pub fn create_test_recipe() -> Recipe<'static> {
|
||||
Recipe::builder()
|
||||
.name("test")
|
||||
.description("This is a test")
|
||||
.base_image("base-image")
|
||||
.image_version("40")
|
||||
.modules_ext(
|
||||
ModuleExt::builder()
|
||||
.modules(vec![Module::builder().build()])
|
||||
.build(),
|
||||
)
|
||||
.stages_ext(None)
|
||||
.extra(IndexMap::new())
|
||||
.build()
|
||||
}
|
||||
|
||||
pub fn create_test_recipe_alt_tags() -> Recipe<'static> {
|
||||
Recipe::builder()
|
||||
.name("test")
|
||||
.description("This is a test")
|
||||
.base_image("base-image")
|
||||
.image_version("40")
|
||||
.alt_tags(cowstr_vec![TEST_TAG_1, TEST_TAG_2])
|
||||
.modules_ext(
|
||||
ModuleExt::builder()
|
||||
.modules(vec![Module::builder().build()])
|
||||
.build(),
|
||||
)
|
||||
.stages_ext(None)
|
||||
.extra(IndexMap::new())
|
||||
.build()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue