Sign inSign up

bryanlatten/docker-suicide

By bryanlatten

Updated almost 6 years ago

An nginx container that will properly healthcheck until LIFESPAN seconds, before killing itself.

Image
0

1M+

bryanlatten/docker-suicide repository overview

docker-suicide

An HTTP-serving container that will properly respond to healthchecks at / until LIFESPAN seconds, before killing itself.

Useful to test cluster configurations where shuffling containers can cause bursts in orchestration logic.

NOTE: healthchecks are

Environment Variables
VariableDefaultDescription
LIFESPAN60How long the container will properly respond to healthchecks before killing itself
RANDOM_MIN0Combined with RANDOM_MAX, will randomize a value to add to LIFESPAN
RANDOM_MAX0Combined with RANDOM_MIN, will randomize a value to add to LIFESPAN
EXIT_CODE0Container process will exit with this code, on DC/OS, set to 1

Tag summary

Content type

Image

Digest

Size

40.4 MB

Last updated

almost 6 years ago

docker pull bryanlatten/docker-suicide