Package io.fabric8.maven.docker
Class StartMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.fabric8.maven.docker.AbstractDockerMojo
-
- io.fabric8.maven.docker.StartMojo
-
- All Implemented Interfaces:
ConfigHelper.Customizer,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Direct Known Subclasses:
RunMojo
@Mojo(name="start", defaultPhase=PRE_INTEGRATION_TEST) public class StartMojo extends AbstractDockerMojoGoal for creating and starting a docker container. This goal evaluates the image configuration- Author:
- roland
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanautoCreateCustomNetworksWhether to create the customs networks (user-defined bridge networks) before starting automaticallyprotected StringportPropertyFile-
Fields inherited from class io.fabric8.maven.docker.AbstractDockerMojo
autoPull, CONTEXT_KEY_BUILD_TIMESTAMP, CONTEXT_KEY_LOG_DISPATCHER, CONTEXT_KEY_START_CALLED, DOCKER_BUILD_TIMESTAMP, dockerAccessFactory, execution, imageConfigResolver, imagePullPolicy, jib, jibImageFormat, keepContainer, log, outputDirectory, packaging, project, registry, removeVolumes, serviceHubFactory, session, settings, skipExtendedAuth, skipPom, sourceDirectory, useColor, verbose
-
-
Constructor Summary
Constructors Constructor Description StartMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteInternal(ServiceHub hub)Hook for subclass for doing the real jobprotected BooleanfollowLogs()-
Methods inherited from class io.fabric8.maven.docker.AbstractDockerMojo
contextualize, createProjectPaths, customizeConfig, execute, getBuildTimestamp, getBuildTimestampFile, getContainerNameMatcher, getContainersForPattern, getDockerAccessContext, getGavLabel, getImageNameMatcher, getImagePullManager, getLogDispatcher, getLogPrefix, getReferenceDate, getRegistryConfig, getResolvedImages, getVolumes, invokedTogetherWithDockerStart, isDockerAccessRequired, pullImage, shouldSkipPom
-
-
-
-
Field Detail
-
autoCreateCustomNetworks
@Parameter(property="docker.autoCreateCustomNetworks", defaultValue="false") protected boolean autoCreateCustomNetworksWhether to create the customs networks (user-defined bridge networks) before starting automatically
-
portPropertyFile
@Parameter protected String portPropertyFile
-
-
Method Detail
-
executeInternal
public void executeInternal(ServiceHub hub) throws DockerAccessException, ExecException, org.apache.maven.plugin.MojoExecutionException
Hook for subclass for doing the real job- Specified by:
executeInternalin classAbstractDockerMojo- Parameters:
hub- context for accessing backends- Throws:
DockerAccessExceptionExecExceptionorg.apache.maven.plugin.MojoExecutionException
-
followLogs
protected Boolean followLogs()
-
-