Package org.implab.gradle.containers.cli
Class DockerTraits
java.lang.Object
org.implab.gradle.containers.cli.DockerTraits
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProcessBuilderprotected ProcessBuildervoidbuildImage(String imageName, File contextDirectory, List<String> options) protected booleancheckRetCode(Process proc, int code) protected voidvoidvoidcomposeStop(File primaryCompose, Set<String> profiles) voidabstract Stringabstract org.gradle.api.logging.LoggerbooleanimageExists(File imageIdFile) booleanimageExists(String imageId) voidvoidvoidvoid
-
Field Details
-
BUILD_COMMAND
- See Also:
-
PUSH_COMMAND
- See Also:
-
RUN_COMMAND
- See Also:
-
SAVE_COMMAND
- See Also:
-
INSPECT_COMMAND
- See Also:
-
IMAGE_COMMAND
- See Also:
-
TAG_COMMAND
- See Also:
-
COMPOSE_COMMAND
- See Also:
-
UP_COMMAND
- See Also:
-
STOP_COMMAND
- See Also:
-
RM_COMMAND
- See Also:
-
-
Constructor Details
-
DockerTraits
public DockerTraits()
-
-
Method Details
-
getLogger
public abstract org.gradle.api.logging.Logger getLogger() -
getWorkingDir
-
getCliCmd
-
checkRetCode
- Throws:
InterruptedException
-
complete
- Throws:
InterruptedExceptionIOException
-
builder
-
builder
-
buildImage
public void buildImage(String imageName, File contextDirectory, List<String> options) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
pushImage
- Throws:
InterruptedExceptionIOException
-
runImage
public void runImage(String image, List<String> options, List<String> command) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
saveImage
- Throws:
InterruptedExceptionIOException
-
tagImage
- Throws:
InterruptedExceptionIOException
-
imageExists
- Throws:
InterruptedExceptionIOException
-
imageExists
-
composeUp
public void composeUp(File primaryCompose, Set<String> profiles) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
composeStop
public void composeStop(File primaryCompose, Set<String> profiles) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
composeRm
public void composeRm(File primaryCompose, Set<String> profiles, boolean removeVolumes) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-