ez_azml.entities.environments.DockerEnvironment

class ez_azml.entities.environments.DockerEnvironment(docker: DockerParams, name: str | None = None, description: str | None = None, **kwargs)

Bases: Environment

Enviromment for training that uses a docker image.

Parameters:
  • docker – docker image’s parameters.

  • name – environment’s name.

  • description – environment’s description.

__init__(docker: DockerParams, name: str | None = None, description: str | None = None, **kwargs)

Methods

__init__(docker[, name, description])

dump(dest, **kwargs)

Dump the asset content into a file in YAML format.

validate()

Validate the environment by checking its name, image and build

Attributes

base_path

The base path of the resource.

conda_file

Conda environment specification.

creation_context

The creation context of the resource.

id

The resource ID.

version

The asset version.