mloq.commands.docker#

Mloq docker command implementation.

Module Contents#

Classes#

DockerCMD

Implement the functionality of the docker Command.

Attributes#

DOCKER_ASSETS_PATH

dockerfile

makefile_docker

DOCKER_FILES

mloq.commands.docker.DOCKER_ASSETS_PATH#
mloq.commands.docker.dockerfile#
mloq.commands.docker.makefile_docker#
mloq.commands.docker.DOCKER_FILES#
class mloq.commands.docker.DockerCMD(record, interactive=False, **kwargs)[source]#

Bases: mloq.command.Command

Implement the functionality of the docker Command.

Parameters
  • record (mloq.writer.CMDRecord) –

  • interactive (bool) –

cmd_name = docker#
files#
disable#
cuda#
cuda_image_type#
cuda_version#
ubuntu_version#
project_name#
docker_org#
python_version#
base_image#
test#
lint#
jupyter#
jupyter_password#
requirements#
extra#
makefile#
static require_cuda_from_requirements(project_config=None)[source]#

Return True if any of the project dependencies require CUDA.

Parameters

project_config (Optional[omegaconf.DictConfig]) –

Return type

bool

requires_cuda()[source]#

Return True if the Docker container requires CUDA.

Return type

bool

get_base_image()[source]#

Return the name of the base image for the project Docker container.

parse_config()[source]#

Update the configuration dictionary from the data entered by the user.

Return type

omegaconf.DictConfig

interactive_config()[source]#

Generate the configuration of the project interactively.

Return type

omegaconf.DictConfig

record_files()[source]#

Register the files that will be generated by mloq.

Return type

None