java.lang.Object
de.iip_ecosphere.platform.ecsRuntime.EcsSetup.AbstractManagerSetup
de.iip_ecosphere.platform.ecsRuntime.docker.Docker

public class Docker extends de.iip_ecosphere.platform.ecsRuntime.EcsSetup.AbstractManagerSetup
Implements the docker specific configuration.
Author:
Monika Staciwa, SSE
  • Field Details

    • dockerHost

      private String dockerHost
    • dockerImageYamlFilename

      private String dockerImageYamlFilename
    • deleteWhenUndeployed

      private boolean deleteWhenUndeployed
    • downloadDirectory

      private String downloadDirectory
    • registry

      private String registry
  • Constructor Details

    • Docker

      public Docker()
  • Method Details

    • getDockerHost

      public String getDockerHost()
      Returns the docker host.
      Returns:
      the docker host as Docker host string, e.g., unix:///var/run/docker.sock
    • setDockerHost

      public void setDockerHost(String dockerHost)
      Defines the docker host. [required by SnakeYaml]
      Parameters:
      dockerHost - the docker host as Docker host string, e.g., unix:///var/run/docker.sock
    • getDockerImageYamlFilename

      public String getDockerImageYamlFilename()
      Returns the name of the Yaml file with information about the Docker Image.
      Returns:
      Name of the Yaml file
    • setDockerImageYamlFilename

      public void setDockerImageYamlFilename(String filename)
      Defines the standard name of the Yaml file with a information about the Docker Image.
      Parameters:
      filename - the name of the Yaml file
    • getDeleteWhenUndeployed

      public boolean getDeleteWhenUndeployed()
      Returns True if Docker files should be removed when the corresponding container gets undeployed. Otherwise it returns False.
      Returns:
      True/False
    • setDeleteWhenUndeployed

      public void setDeleteWhenUndeployed(boolean deleteWhenUndeployed)
      Defines if Docker files should be deleted when the corresponding container gets undeployed. [required by SnakeYaml]
      Parameters:
      deleteWhenUndeployed - True or False
    • setDownloadDirectory

      public void setDownloadDirectory(String directory)
      Defines the download directory. [required by SnakeYaml]
      Parameters:
      directory -
    • getDownloadDirectory

      public String getDownloadDirectory()
      Returns the download directory. If the configured download directory is null or empty, it returns the system temporary directory.
      Returns:
      directory, the system temporary directory if none is specified
    • getRegistry

      public String getRegistry()
      Returns the host/port of the docker registry to use.
      Returns:
      the registry, e.g., localhost:5050; may be null or empty
    • setRegistry

      public void setRegistry(String registry)
      Defines the host/port of the docker registry to use. [required by SnakeYaml]
      Parameters:
      registry - the registry, e.g., localhost:5050