File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
examples/reliable-tests-of-docker-images Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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}'
You can’t perform that action at this time.
0 commit comments