pub struct Dofigen {
pub context: Vec<String>,
pub ignore: Vec<String>,
pub global_arg: HashMap<String, String>,
pub builders: HashMap<String, Stage>,
pub stage: Stage,
pub entrypoint: Vec<String>,
pub cmd: Vec<String>,
pub volume: Vec<String>,
pub expose: Vec<Port>,
pub healthcheck: Option<Healthcheck>,
}Expand description
Represents the Dockerfile main stage
Fields§
§context: Vec<String>The context of the Docker build This is used to generate a .dockerignore file
ignore: Vec<String>The elements to ignore from the build context This is used to generate a .dockerignore file
global_arg: HashMap<String, String>The global build args of the Dockerfile See: https://docs.docker.com/build/building/variables/#scoping
builders: HashMap<String, Stage>The builder stages of the Dockerfile
stage: StageThe runtime stage of the Dockerfile
entrypoint: Vec<String>The entrypoint of the Dockerfile See https://docs.docker.com/reference/dockerfile/#entrypoint
cmd: Vec<String>The default command of the Dockerfile See https://docs.docker.com/reference/dockerfile/#cmd
volume: Vec<String>Create volume mounts See https://docs.docker.com/reference/dockerfile/#volume
expose: Vec<Port>The ports exposed by the Dockerfile See https://docs.docker.com/reference/dockerfile/#expose
healthcheck: Option<Healthcheck>The healthcheck of the Dockerfile See https://docs.docker.com/reference/dockerfile/#healthcheck
Implementations§
Trait Implementations§
Source§impl From<DofigenPatch> for Dofigen
impl From<DofigenPatch> for Dofigen
Source§fn from(value: DofigenPatch) -> Self
fn from(value: DofigenPatch) -> Self
Source§impl Patch<DofigenPatch> for Dofigen
impl Patch<DofigenPatch> for Dofigen
Source§fn apply(&mut self, patch: DofigenPatch)
fn apply(&mut self, patch: DofigenPatch)
Source§fn into_patch(self) -> DofigenPatch
fn into_patch(self) -> DofigenPatch
SelfSource§fn into_patch_by_diff(self, previous_struct: Self) -> DofigenPatch
fn into_patch_by_diff(self, previous_struct: Self) -> DofigenPatch
previous_struct into Self