diff --git a/doc/changelog.md b/doc/changelog.md index 08f479235..fd6deda01 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -13,6 +13,7 @@ - HTTP method and status code can be specified when waiting on an HTTP URL (#258) - Introduced global `portPropertyFile` setting (#90) - Allow the container's host ip to be bound to a maven property and exported + - Add logic to specify exec commands during postStart and preStop (#272) * **0.13.2** - "run" directives can be added to the Dockerfile (#191) diff --git a/doc/manual.md b/doc/manual.md index 04463ce99..779624731 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -806,7 +806,10 @@ some condition is met. These conditions can be specified within a * **shutdown** is the time to wait in milliseconds between stopping a container and removing it. This might be helpful in situation where a Docker croaks with an error when trying to remove a container to fast after it has been stopped. - +* **exec** Specifies commands to execute during specified lifecycle of the container. It knows the following sub-elements: + - **postStart** Command to run after the above wait criteria has been met + - **preStop** Command to run before the container is stopped. + As soon as one condition is met the build continues. If you add a `