/** * Set list of containers to mount volumes from onto this container. * * @param volumesFrom the list of container names */ public DockerTemplateOptions volumesFrom(Iterable<String> volumesFrom) { this.volumesFrom = NullSafeCopies.copyOf(volumesFrom); return this; }
public DockerTemplateOptions entrypoint(Iterable<String> entrypoint) { this.entrypoint = NullSafeCopies.copyWithNullOf(entrypoint); return this; }
/** * Removes Docker image if it's present on the Docker host. * * @param imageName * image to be deleted (must be not-<code>null</code>) * @see DockerTestUtils#removeImageIfExists(DockerApi, String) */ protected void removeImageIfExists(String imageName) { DockerTestUtils.removeImageIfExists(api, imageName); }
/** * Set list of containers to mount volumes from onto this container. * * @param volumesFrom the list of container names */ public DockerTemplateOptions volumesFrom(Iterable<String> volumesFrom) { this.volumesFrom = NullSafeCopies.copyOf(volumesFrom); return this; }
public DockerTemplateOptions env(Iterable<String> env) { this.env = NullSafeCopies.copyWithNullOf(env); return this; }
/** * Set extra hosts file entries for a container. * <p> * The {@link Map} keys are host names, and the value is an IP address that * can be accessed by the container. This is the same order as the arguments for the * {@code --add-host} command-line option to {@code docker run}. * * @param extraHosts the map of host names to IP addresses */ public DockerTemplateOptions extraHosts(Map<String, String> extraHosts) { this.extraHosts = NullSafeCopies.copyOf(extraHosts); return this; }
public DockerTemplateOptions env(String...env) { this.env = NullSafeCopies.copyWithNullOf(env); return this; }
/** * Set list of containers to mount volumes from onto this container. * * @param volumesFrom the list of container names */ public DockerTemplateOptions volumesFrom(Iterable<String> volumesFrom) { this.volumesFrom = NullSafeCopies.copyOf(volumesFrom); return this; }
public DockerTemplateOptions entrypoint(Iterable<String> entrypoint) { this.entrypoint = NullSafeCopies.copyWithNullOf(entrypoint); return this; }
/** * Set list of containers to mount volumes from onto this container. * * @param volumesFrom the list of container names */ public DockerTemplateOptions volumesFrom(Iterable<String> volumesFrom) { this.volumesFrom = NullSafeCopies.copyOf(volumesFrom); return this; }
public DockerTemplateOptions commands(Iterable<String> commands) { this.commands = NullSafeCopies.copyWithNullOf(commands); return this; }
public DockerTemplateOptions dns(String...dns) { this.dns = NullSafeCopies.copyOf(dns); return this; }
public DockerTemplateOptions commands(String...commands) { this.commands = NullSafeCopies.copyWithNullOf(commands); return this; }
public DockerTemplateOptions dns(Iterable<String> dns) { this.dns = NullSafeCopies.copyOf(dns); return this; }
public DockerTemplateOptions entrypoint(String... entrypoint) { this.entrypoint = NullSafeCopies.copyWithNullOf(entrypoint); return this; }
public DockerTemplateOptions dns(String...dns) { this.dns = NullSafeCopies.copyOf(dns); return this; }
public DockerTemplateOptions commands(String...commands) { this.commands = NullSafeCopies.copyWithNullOf(commands); return this; }
public DockerTemplateOptions volumes(Map<String, String> volumes) { this.volumes = NullSafeCopies.copyOf(volumes); return this; }
public DockerTemplateOptions commands(String...commands) { this.commands = NullSafeCopies.copyWithNullOf(commands); return this; }
/** * Set extra hosts file entries for a container. * <p> * The {@link Map} keys are host names, and the value is an IP address that * can be accessed by the container. This is the same order as the arguments for the * {@code --add-host} command-line option to {@code docker run}. * * @param extraHosts the map of host names to IP addresses */ public DockerTemplateOptions extraHosts(Map<String, String> extraHosts) { this.extraHosts = NullSafeCopies.copyOf(extraHosts); return this; }