public interface DockerProvider
| Modifier and Type | Method and Description |
|---|---|
String |
buildImage(ImageBuildConfiguration image)
Builds a new Docker Image based on the passed configuration and returns the id of the newly created image.
|
String |
commitContainer(ContainerCommitConfiguration configuration)
Create a new image from a container's changes
|
void |
deleteContainer(String containerId)
Delete a docker container
|
List<ExposedPort> |
getExposedPorts(String containerId)
Returns a list of ports exposed by the container, including information on how to reach them
|
String |
getLogs(String containerId)
Returns the logs of the specified container
|
void |
pushImage(String nameAndTag)
Pushes an image from docker to a registry.
|
void |
removeImage(String imageId)
Removes an image from docker
|
void |
setCredentials(Credentials credentials)
Sets (or un-sets) the credentials to be used when communicating with the Docker host.
|
void |
setLogger(org.apache.maven.plugin.logging.Log logger)
Sets the logger to use.
|
void |
setRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories)
Sets the remoteRepositories to use.
|
void |
setRepositorySystem(org.eclipse.aether.RepositorySystem repositorySystem)
Sets the repositorySystem to use.
|
void |
setRepositorySystemSession(org.eclipse.aether.RepositorySystemSession repositorySystemSession)
Sets the repositorySystemSession to use.
|
ContainerInspectionResult |
startContainer(ContainerStartConfiguration configuration)
Starts a docker container and returns the ID of the started container
|
void |
stopContainer(String containerId)
Stops a docker container
|
void |
tagImage(String imageId,
String nameAndTag)
Associates an image with a new repo/tag.
|
void setCredentials(Credentials credentials)
credentials - the user credentials, may be nullContainerInspectionResult startContainer(ContainerStartConfiguration configuration)
configuration - the configuration parametersvoid stopContainer(String containerId)
containerId - the Id of the container to stopvoid deleteContainer(String containerId)
containerId - the Id of the container to deleteList<ExposedPort> getExposedPorts(String containerId)
containerId - the Id of the containerList of ExposedPortsString buildImage(ImageBuildConfiguration image)
image - the image configuration to useString commitContainer(ContainerCommitConfiguration configuration)
configuration - the configuration parametersvoid removeImage(String imageId)
imageId - the Id of the images to removevoid pushImage(String nameAndTag)
nameAndTag - optional name and tag to be associated with pushed imagevoid tagImage(String imageId, String nameAndTag)
imageId - the Id of the image to tagnameAndTag - the repo/tag to assignString getLogs(String containerId)
containerId - the Id of the containervoid setLogger(org.apache.maven.plugin.logging.Log logger)
logger - the Maven logger to usevoid setRepositorySystem(org.eclipse.aether.RepositorySystem repositorySystem)
repositorySystem - the Maven repositorySystem to usevoid setRepositorySystemSession(org.eclipse.aether.RepositorySystemSession repositorySystemSession)
repositorySystemSession - the Maven repositorySystemSession to usevoid setRemoteRepositories(List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories)
remoteRepositories - the Maven remoteRepositories to useCopyright © 2016. All Rights Reserved.