-
Notifications
You must be signed in to change notification settings - Fork 644
docker:start
Roland Huß edited this page Feb 27, 2015
·
3 revisions
Maven Goal for starting a container. This goal has various configuration parameters which influence its behaviour.
This goal is best attached to the pre-integration-test
phase of the Maven lifecycle, so that containers are started
before the integration test runs.
If multiple containers are required they should be attached individually to the lifecycle, each with their own configuration. Common configuration options then should go into the main configuration section. Creates and starts a docker container.
Parameter | Descriptions | Property | Default |
---|---|---|---|
url | URL to the docker daemon | docker.url |
http://localhost:4243 |
image | Name of the docker image (e.g. jolokia/tomcat:7.0.52 ) |
docker.image |
none, required |
ports | List of ports to be mapped statically or dynamically. | ||
autoPull | Set to true if an unknown image should be automatically pulled |
docker.autoPull |
true |
command | Command to execute in the docker container | docker.command |
|
assemblyDescriptor | Path to the data container assembly descriptor. See below for an explanation and example | ||
portPropertyFile | Path to a file where dynamically mapped ports are written to | ||
wait | Ramp up time in milliseconds | docker.wait |
|
waitHttp | Wait until this URL is reachable with an HTTP HEAD request. Dynamic port variables can be given, too | docker.waitHttp |
|
color | Set to true for colored output |
docker.color |
true if TTY connected |