Skip to content

Commit 8b98fd8

Browse files
author
Oleksii Tsvietnov
committed
Update readme
1 parent 70ff1d7 commit 8b98fd8

File tree

1 file changed

+6
-1
lines changed
  • examples/reliable-tests-of-docker-images

1 file changed

+6
-1
lines changed

examples/reliable-tests-of-docker-images/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ The container with a service resides in [vorakl/centos-opensmtpd](https://hub.do
1313
$ docker run -d --name smtpd --net host vorakl/centos-opensmtpd
1414
```
1515

16-
Let's add two (`async`, -D and `halt`, -H) additional commands to test the service and check the result:
16+
Let's add two additional commands to test the service and check the result:
17+
18+
* async: `-D 'sleep 3; smtpctl show status && kill -10 ${MAINPID}'`
19+
* halt: `-H 'if [[ ${_exit_status} -eq 138 ]]; then exit 0; else exit ${_exit_status}; fi'`
20+
21+
That's how it looks like:
1722

1823
```bash
1924
$ 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}'

0 commit comments

Comments
 (0)