Annotation Interface DockerContainerConfig


@Retention(RUNTIME) @Target(FIELD) public @interface DockerContainerConfig
Docker Container Configuation
Annotation:
Description:
The @DockerContainerConfig annotation provides an object to manually configure certain aspects of a containers run. Within the annotation, volumes can be requests, for both binding and provisioning. Look at the Docker volume annotation description for more details. The IDockerContainerConfig object it self allows for non provisioing configurations to be set at test time and ammended between container startups. The IDockerContainer object needs to use the startWithConfig() method to take use of the customised startup config
Examples:
   @DockerContainerConfig(
        dockerVolumes =  {
            @DockerVolume(mountPath = "/tmp/testvol"),
        }
    )
    public IDockerContainerConfig config;
   
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Multiple volumes can be mounted within a single configuration
  • Element Details

    • dockerVolumes

      DockerVolume[] dockerVolumes
      Multiple volumes can be mounted within a single configuration
      Returns:
      Default:
      {}