Sign inSign up

eyjhb/fatso

By eyjhb

Updated over 7 years ago

fatso - the unhealthy container that makes sure you scripts work!

Image
0

1.6K

eyjhb/fatso repository overview

Fatso - The Unhealthy Container!

This is a simple Docker container, which only goal is to be unhealthy when you specify it! The reason for the name fatso, is basically that some might just use something like ...

if "unhealthy" in docker_ps_output:
    # do unhelahty container action here

Which would be unfortunate. Therefore fatso has come into place, as the unhealthy container!

Fatso has two environment variables, that determine when it should be unhealthy and when it should start being healthy again! These are variables for crond, so it will run a script when it needs to be healthy and another when is needs to be healthy again.

docker-compose.yml

  fatso:
    container_name: fatso
    image: eyjhb/fatso
    restart: always
    environment:
      - TZ=${TZ}
      - UNHEALTHY_START=00 12 * * 1
      - UNHEALTHY_STOP=05 12 * * 1

GitHub - https://github.com/eyJhb/docker-images/tree/master/fatso

DockerHub - https://hub.docker.com/r/eyjhb/fatso

Tag summary

Content type

Image

Digest

Size

2.5 MB

Last updated

over 7 years ago

docker pull eyjhb/fatso