Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Tsvietnov committed Mar 16, 2017
1 parent 70ff1d7 commit 8b98fd8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/reliable-tests-of-docker-images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ The container with a service resides in [vorakl/centos-opensmtpd](https://hub.do
$ docker run -d --name smtpd --net host vorakl/centos-opensmtpd
```

Let's add two (`async`, -D and `halt`, -H) additional commands to test the service and check the result:
Let's add two additional commands to test the service and check the result:

* async: `-D 'sleep 3; smtpctl show status && kill -10 ${MAINPID}'`
* halt: `-H 'if [[ ${_exit_status} -eq 138 ]]; then exit 0; else exit ${_exit_status}; fi'`

That's how it looks like:

```bash
$ docker run --rm vorakl/centos-opensmtpd -H 'if [[ ${_exit_status} -eq 138 ]]; then exit 0; else exit ${_exit_status}; fi' -D 'sleep 3; smtpctl show status && kill -10 ${MAINPID}'
Expand Down

0 comments on commit 8b98fd8

Please sign in to comment.