genvid.toolbox.DockerPackage

Warning

This class has been deprecated. Please use DockerTool.update_image() instead.

class genvid.toolbox.DockerPackage

Bases: genvid.toolbox.docker.DockerTool

Deprecated since version 1.30.0: Deprecated in favor of genvid.toolbox.DockerTool.update_image().

create_docker_package(docker_image: str, *, version: str = 'latest', destination: typing.Union[pathlib.Path, str])

Creates the package of Docker image.

Parameters:
  • docker_image – Name of the Docker image.
  • version – Version/Tag to be included in name of package.
  • destination – Destination where Zip will be saved.

If the version is passed in the command, it is included in the name of the Zip, otherwise default value is used.

Destination directory can be passed in command, if not, the default value is used i.e. ARTIFACTS_DIR.

class docker_package.DockerPackage

Implementation of genvid.toolbox.DockerPackage