Class DockerBuildImage

java.lang.Object
net.ssehub.easy.instantiation.core.model.defaultInstantiators.AbstractFileInstantiator
net.ssehub.easy.instantiation.docker.instantiators.AbstractDockerInstantiator
net.ssehub.easy.instantiation.docker.instantiators.DockerBuildImage
All Implemented Interfaces:
net.ssehub.easy.instantiation.core.model.vilTypes.IVilType

public class DockerBuildImage extends AbstractDockerInstantiator
Builds Docker images.
Author:
Monika Staciwa
  • Field Details

    • BUILD_WITH_CACHE

      private static final boolean BUILD_WITH_CACHE
  • Constructor Details

    • DockerBuildImage

      public DockerBuildImage()
  • Method Details

    • dockerBuildImage

      public static String dockerBuildImage(net.ssehub.easy.instantiation.core.model.artifactModel.Path baseDirectory, net.ssehub.easy.instantiation.core.model.artifactModel.Path dockerFile, String name) throws net.ssehub.easy.instantiation.core.model.common.VilException
      Executes a specific Dockerfile and builds an image.
      Parameters:
      baseDirectory - the base directory for the build context
      dockerFile - the docker file for the container to create
      name - name of the image with following schema (repository:tag)
      Returns:
      the container id, may be null/undefined
      Throws:
      net.ssehub.easy.instantiation.core.model.common.VilException - in case of artifact / parameter problems
    • getTask

      private static String getTask(String name)
      Returns the task at hands.
      Parameters:
      name - the name of the task
      Returns:
      the composed name