Sign inSign up

zablvit/zero

By zablvit

Updated over 7 years ago

Image with binary which does nothing and exits with code 0

Image
1

100K+

zablvit/zero repository overview

zero

does nothing and exits with code 0

Use cases

At least one use case would be to spin up a docker-compose service (or a couple of them), wait until it's healthy and exit (something you cannot achieve with docker-compose up -d )

Example:

version: "2.4"
services:
  mariadb:
    image: mariadb
    ports:
      - "3306:3306"
    environment:
      - MYSQL_ROOT_PASSWORD=S3cret
    healthcheck:
      test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]

  my-database:
    image: zablvit/zero
    depends_on:
      mariadb:
        condition: service_healthy

And execute docker-compose up my-database


Other use-cases are up to your imagination: e.g. k8s jobs, which do noting, etc.

Tag summary

Content type

Image

Digest

Size

129 Bytes

Last updated

over 7 years ago

docker pull zablvit/zero