Changes:
- (#43) Bugfix: Images using ENTRYPOINT will not start when builder.entrypoint(..) is not set
Changes:
- Spotify docker client updated to version 8.9.2
- (#41) Bugfix: Log message order can be lost
Changes:
- (#39) Accept not only file and paths but also volume names in mountFrom
- (#38) Allow definition of restart policy on container start
- (#36) Change docker client dependency to non-shaded
- (#34) Expose underlying Docker API ContainerInfo to rule clients
- (#35) Allow defining custom container startup conditions.
Conditions are now specified with builder
waitFor(StartCondition condition)
and old builder methods (waitFor...(...)
) are marked as deprecated. See custom condition example.
Fixes:
- (#33) bug: rule does not allow publishing same internal port twice
New features:
- static (#23) and dynamic (#27) container linking (static and dynamic example)
- (#24) wait for specific sequence of messages (instead single message) in output at container start (example)
- (#2) wait for http url and tcp socket open on container start (examples: tcp socket wait and http wait). See notes
- (#29) expose specified container port to random host port (example)
Released 2016-09-08
Fixes:
- (#32) NullPointerException if an image don't have a repoTags
First stable version. Features:
- use it as JUnit @Rule or @ClassRule
- specify image name/tag
- specify container name (equivalent of command line
--name
) - pass environment variables (
--env
or-e
) - publish all exposed port to dynamically allocated host ports (
--publish-all
or-P
) - publish specified container ports to specified host ports (
-p
- tcp or udp, no port ranges support yet) - mount host directory as a data volume (
--volume
or-v
- also works for workstation dirs to boot2docker container with restriction that dir must be under user homedir) - specify extra /etc/hosts entries (
--add-host
) - access container stderr and stdout (forwarded to java System.err and System.out by default)
- wait for message in output at container start