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

public class DockerPushImage extends AbstractDockerInstantiator
Instantiator to push a Docker image to a repository.
Author:
Monika Staciwa
  • Constructor Details

    • DockerPushImage

      public DockerPushImage()
  • Method Details

    • dockerPushImage

      public static boolean dockerPushImage(String imageName, String registry, String repository, String tag) throws net.ssehub.easy.instantiation.core.model.common.VilException
      Returns the name of a Docker image.
      Parameters:
      imageName - name of the image, "repository:tag"
      registry - the target registry
      repository - the repository within registry to use
      tag - optional tag, may be empty
      Returns:
      true if removed
      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