Class DockerImage.Starter<T extends DockerContainer>
- java.lang.Object
-
- org.jenkinsci.test.acceptance.docker.DockerImage.Starter<T>
-
- Enclosing class:
- DockerImage
public static final class DockerImage.Starter<T extends DockerContainer> extends Object
-
-
Constructor Summary
Constructors Constructor Description Starter(Class<T> type, DockerImage image)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
start()
DockerImage.Starter<T>
withArgs(org.jenkinsci.utils.process.CommandBuilder args)
DockerImage.Starter<T>
withIpAddress(String ipAddress)
DockerImage.Starter<T>
withLog(File log)
DockerImage.Starter<T>
withOptions(org.jenkinsci.utils.process.CommandBuilder options)
DockerImage.Starter<T>
withPortOffset(Integer portOffset)
DockerImage.Starter<T>
withPorts(int... ports)
DockerImage.Starter<T>
withUdpPorts(int... udpPorts)
-
-
-
Constructor Detail
-
Starter
public Starter(Class<T> type, DockerImage image)
-
-
Method Detail
-
withPorts
public DockerImage.Starter<T> withPorts(int... ports)
-
withUdpPorts
public DockerImage.Starter<T> withUdpPorts(int... udpPorts)
-
withPortOffset
public DockerImage.Starter<T> withPortOffset(Integer portOffset)
-
withIpAddress
public DockerImage.Starter<T> withIpAddress(String ipAddress)
-
withOptions
public DockerImage.Starter<T> withOptions(org.jenkinsci.utils.process.CommandBuilder options)
-
withArgs
public DockerImage.Starter<T> withArgs(org.jenkinsci.utils.process.CommandBuilder args)
-
withLog
public DockerImage.Starter<T> withLog(File log)
-
start
public T start() throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
-