Crate dofigen_lib

source
Expand description

§dofigen_lib

dofigen_lib help creating Dockerfile with a simplified structure and made to cache the build with Buildkit. You also can parse the structure from YAML or JSON.

use dofigen_lib::*;
use pretty_assertions_sorted::assert_eq_sorted;

let mut context = DofigenContext::new();

let dofigen = context.parse_from_string(r#"
fromImage:
  path: ubuntu
"#).unwrap();

let dockerfile = generate_dockerfile(&dofigen).unwrap();

Modules§

Structs§

Enums§

Functions§

Type Aliases§