Class Docker
java.lang.Object
org.jenkinsci.test.acceptance.docker.Docker
Entry point to the docker support.
Use this subsystem by injecting this class into your test.
- Author:
- Kohsuke Kawaguchi, asotobueno
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(Class<? extends DockerContainer> fixture) build
(Class<? extends DockerContainer> fixture, File log) static org.jenkinsci.utils.process.CommandBuilder
Class<? extends DockerContainer>
findFixture
(String id) Finds a fixture class that has the specified ID.boolean
Checks if docker is available on this system.boolean
isContainerRunning
(String container) Checks if a given container is currently running.
-
Field Details
-
classLoader
-
NO_CACHE
public static boolean NO_CACHE
-
-
Constructor Details
-
Docker
public Docker()
-
-
Method Details
-
cmd
-
isAvailable
public boolean isAvailable()Checks if docker is available on this system. -
isContainerRunning
Checks if a given container is currently running.- Parameters:
container
- Container id- Returns:
- false if the container is not running, true otherwise
- Throws:
IOException
InterruptedException
-
build
public DockerImage build(Class<? extends DockerContainer> fixture) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
build
public DockerImage build(Class<? extends DockerContainer> fixture, File log) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
findFixture
Finds a fixture class that has the specified ID.- Throws:
IOException
- See Also:
-