Sign inSign up

jacksondavenport/exit_code

By jacksondavenport

Updated 11 months ago

Image
0

3.3K

jacksondavenport/exit_code repository overview

Test container built off of busybox. Takes the Environment Variables EXIT_CODE (default: 1) and SLEEP_DURATION (default: 30) and will startup, sleep for that duration in seconds, and then exit with that specified code.

Will create logs like:

Using Exit Code: 10
Sleeping for 60 seconds
Exiting

Can additionally set the Environment Variable RANDOM_FAILURE to a value of true or false (default: false). When true this will 50/50 have it exit with a "good" code of 0 or the specified EXIT_CODE. The logs will reflect this accordingly:

Random Fail, Fail, exiting with 1
Random Fail, Passed, exiting with 0

Tag summary

Content type

Image

Digest

sha256:9a0582958

Size

1.8 MB

Last updated

11 months ago

docker pull jacksondavenport/exit_code