easybuild.tools.containers.docker module

Support for generating docker container recipes and creating container images

:author Mohamed Abidi (Bright Computing)

class easybuild.tools.containers.docker.DockerContainer(easyconfigs)

Bases: easybuild.tools.containers.base.ContainerGenerator

RECIPE_FILE_NAME = 'Dockerfile'
TOOLS = {'docker': None, 'sudo': None}
build_image(dockerfile)

This method will be used on the concrete subclass to build the image using The path of the container recipe.

resolve_template()

This method should be implemented by the concrete subclass to return the correct template for the container recipe.

resolve_template_data()

This method should be implemented by the concrete subclass to return a dictionary of template data for container recipe generation.

validate()

A method that should contain all the validation logic for both container recipe (Singularity, Dockerfile, …) and image generation.