Modifier and Type | Method and Description |
---|---|
protected void |
BuildMojo.buildAndTag(ServiceHub hub,
ImageConfiguration imageConfig) |
protected void |
WatchMojo.executeInternal(ServiceHub hub) |
protected void |
VolumeRemoveMojo.executeInternal(ServiceHub serviceHub) |
protected void |
VolumeCreateMojo.executeInternal(ServiceHub serviceHub) |
protected void |
StopMojo.executeInternal(ServiceHub hub) |
void |
StartMojo.executeInternal(ServiceHub hub)
Hook for subclass for doing the real job
|
protected void |
SourceMojo.executeInternal(ServiceHub hub) |
protected void |
SaveMojo.executeInternal(ServiceHub serviceHub) |
protected void |
RemoveMojo.executeInternal(ServiceHub hub) |
void |
PushMojo.executeInternal(ServiceHub hub)
Hook for subclass for doing the real job
|
protected void |
LogsMojo.executeInternal(ServiceHub hub) |
protected void |
BuildMojo.executeInternal(ServiceHub hub) |
protected abstract void |
AbstractDockerMojo.executeInternal(ServiceHub serviceHub)
Hook for subclass for doing the real job
|
Modifier and Type | Method and Description |
---|---|
void |
DockerAccess.buildImage(String image,
File dockerArchive,
BuildOptions options)
Create an docker image from a given archive
|
void |
DockerAccess.copyArchive(String containerId,
File archive,
String targetPath)
Copy an archive (must be a tar) into a running container
Get all containers matching a certain label.
|
String |
DockerAccess.createContainer(ContainerCreateConfig configuration,
String containerName)
Create a container from the given image.
|
String |
DockerAccess.createExecContainer(String containerId,
Arguments arguments)
Sets up an exec instance for a running container id
|
String |
DockerAccess.createNetwork(NetworkCreateConfig configuration)
Create a custom network from the given configuration.
|
String |
DockerAccess.createVolume(VolumeCreateConfig configuration)
Create a volume
|
InspectedContainer |
DockerAccess.getContainer(String containerIdOrName)
Get a container
|
List<Container> |
DockerAccess.getContainersForImage(String image)
Get all containers which are build from an image.
|
String |
DockerAccess.getImageId(String name)
Get the image id of a given name or
null if no such image exists |
String |
DockerAccess.getServerApiVersion()
Get the API version of the running server
|
boolean |
DockerAccess.hasImage(String name)
Check whether the given name exists as image at the docker daemon
|
List<Network> |
DockerAccess.listNetworks()
List all networks
|
void |
DockerAccess.loadImage(String image,
File tarArchive)
Load an image from an archive.
|
void |
DockerAccess.pullImage(String image,
AuthConfig authConfig,
String registry)
Pull an image from a remote registry and store it locally.
|
void |
DockerAccess.pushImage(String image,
AuthConfig authConfig,
String registry,
int retries)
Push an image to a registry.
|
void |
DockerAccess.removeContainer(String containerId,
boolean removeVolumes)
Remove a container with the given id
|
boolean |
DockerAccess.removeImage(String image,
boolean... force)
Remove an image from this docker installation
|
boolean |
DockerAccess.removeNetwork(String networkId)
Remove a custom network
|
void |
DockerAccess.removeVolume(String name)
Removes a volume.
|
void |
DockerAccess.saveImage(String image,
String filename,
ArchiveCompression compression)
Save an image to a tar file
|
void |
DockerAccess.start()
Lifecycle method for this access class which must be called before any other method is called.
|
void |
DockerAccess.startContainer(String containerId)
Start a container.
|
void |
DockerAccess.startExecContainer(String containerId,
LogOutputSpec outputSpec)
Starts a previously set up exec instance id.
|
void |
DockerAccess.stopContainer(String containerId,
int killWait)
Stop a container.
|
void |
DockerAccess.tag(String sourceImage,
String targetImage,
boolean force)
Alias an image in the repository with a complete new name.
|
Modifier and Type | Method and Description |
---|---|
void |
PullOrPushResponseJsonHandler.process(org.json.JSONObject json) |
void |
EntityStreamReaderUtil.JsonEntityResponseHandler.process(org.json.JSONObject toProcess) |
void |
BuildJsonResponseHandler.process(org.json.JSONObject json) |
Modifier and Type | Method and Description |
---|---|
void |
DockerAccessWithHcClient.buildImage(String image,
File dockerArchive,
BuildOptions options) |
void |
DockerAccessWithHcClient.copyArchive(String containerId,
File archive,
String targetPath) |
String |
DockerAccessWithHcClient.createContainer(ContainerCreateConfig containerConfig,
String containerName) |
String |
DockerAccessWithHcClient.createExecContainer(String containerId,
Arguments arguments) |
String |
DockerAccessWithHcClient.createNetwork(NetworkCreateConfig networkConfig) |
String |
DockerAccessWithHcClient.createVolume(VolumeCreateConfig containerConfig) |
InspectedContainer |
DockerAccessWithHcClient.getContainer(String containerIdOrName) |
List<Container> |
DockerAccessWithHcClient.getContainersForImage(String image) |
String |
DockerAccessWithHcClient.getImageId(String name) |
String |
DockerAccessWithHcClient.getServerApiVersion()
Get the API version of the running server
|
boolean |
DockerAccessWithHcClient.hasImage(String name) |
List<Network> |
DockerAccessWithHcClient.listNetworks() |
void |
DockerAccessWithHcClient.loadImage(String image,
File tarArchive) |
void |
DockerAccessWithHcClient.pullImage(String image,
AuthConfig authConfig,
String registry) |
void |
DockerAccessWithHcClient.pushImage(String image,
AuthConfig authConfig,
String registry,
int retries) |
void |
DockerAccessWithHcClient.removeContainer(String containerId,
boolean removeVolumes) |
boolean |
DockerAccessWithHcClient.removeImage(String image,
boolean... forceOpt) |
boolean |
DockerAccessWithHcClient.removeNetwork(String networkId) |
void |
DockerAccessWithHcClient.removeVolume(String name) |
void |
DockerAccessWithHcClient.saveImage(String image,
String filename,
ArchiveCompression compression) |
void |
DockerAccessWithHcClient.startContainer(String containerId) |
void |
DockerAccessWithHcClient.startExecContainer(String containerId,
LogOutputSpec outputSpec) |
void |
DockerAccessWithHcClient.stopContainer(String containerId,
int killWait) |
void |
DockerAccessWithHcClient.tag(String sourceImage,
String targetImage,
boolean force) |
Modifier and Type | Method and Description |
---|---|
DockerAccessException |
LogRequestor.getException() |
DockerAccessException |
LogGetHandle.getException() |
Modifier and Type | Method and Description |
---|---|
void |
BuildService.buildImage(ImageConfiguration imageConfig,
BuildService.BuildContext buildContext)
Pull the base image if needed and run the build.
|
protected void |
BuildService.buildImage(ImageConfiguration imageConfig,
MojoParameters params,
boolean noCache,
Map<String,String> buildArgs)
Build an image
|
void |
RegistryService.checkImageWithAutoPull(String image,
String registry,
boolean autoPullAlwaysAllowed,
RegistryService.RegistryConfig registryConfig)
Check an image, and, if
autoPull is set to true, fetch it. |
String |
RunService.createAndStartContainer(ImageConfiguration imageConfig,
PortMapping portMapping,
PomLabel pomLabel,
Properties mavenProps,
File baseDir)
Create and start a container with the given image configuration.
|
void |
RunService.createCustomNetworkIfNotExistant(String customNetwork) |
String |
VolumeService.createVolume(VolumeConfiguration vc) |
String |
RunService.execInContainer(String containerId,
String command,
ImageConfiguration imageConfiguration)
Create and start a Exec container with the given image configuration.
|
Container |
QueryService.getContainer(String containerIdOrName)
Get a container running for a given container name.
|
String |
QueryService.getContainerName(String containerId)
Get name for single container when the id is given
|
List<Container> |
QueryService.getContainersForImage(String image)
Get all containers which are build from an image.
|
String |
QueryService.getImageId(String imageName)
Finds the id of an image.
|
Container |
QueryService.getLatestContainerForImage(String image)
Get the id of the latest container started for an image
|
Container |
QueryService.getMandatoryContainer(String containerIdOrName)
Get container by id
|
Network |
QueryService.getNetworkByName(String networkName)
Get a network for a given network name.
|
Set<Network> |
QueryService.getNetworks()
Get all networks.
|
boolean |
QueryService.hasContainer(String containerName)
Check whether a container with the given name exists
|
boolean |
QueryService.hasImage(String name)
Check whether the given Image is locally available.
|
boolean |
QueryService.hasNetwork(String networkName)
Check whether a network with the given name exists
|
boolean |
QueryService.imageRequiresAutoPull(String mode,
String imageName,
boolean always,
ImagePullCache previouslyPulled)
Check whether an image needs to be pulled.
|
void |
RegistryService.pushImages(Collection<ImageConfiguration> imageConfigs,
String pushRegistry,
int retries,
RegistryService.RegistryConfig registryConfig) |
void |
RunService.removeCustomNetworks(Collection<Network> networks) |
void |
VolumeService.removeVolume(String volumeName) |
void |
RunService.stopContainer(String containerId,
ImageConfiguration imageConfig,
boolean keepContainer,
boolean removeVolumes)
Stop a container immediately by id.
|
void |
RunService.stopPreviouslyStartedContainer(String containerId,
boolean keepContainer,
boolean removeVolumes)
Lookup up whether a certain has been already started and registered.
|
void |
RunService.stopStartedContainers(boolean keepContainer,
boolean removeVolumes,
boolean removeCustomNetworks,
PomLabel pomLabel)
Stop all registered container
|
void |
BuildService.tagImage(String imageName,
ImageConfiguration imageConfig) |
void |
WatchService.watch(WatchService.WatchContext context,
BuildService.BuildContext buildContext,
List<ImageConfiguration> images) |
Copyright © 2020. All rights reserved.