clickbg/wait

By clickbg

Updated 7 days ago

Wait for X time

Image
Developer Tools

1.1K

wait

CICDUPDATEPUBLISH

Pause for a time equal to the total of the args given, where each arg can have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays
The container will exit gracefully after the time period has passed.

Based on BusyBox Stable - https://hub.docker.com/_/busybox

Usage

Command Line:

docker run --name wait clickbg/wait:latest 10m

Compose (v2.11.2):

  wait:
    image: clickbg/wait:latest
    container_name: wait
    restart: "no"
    command: 2m

  wwwlb:
    container_name: wwwlb
    restart: always
    image: nginx:latest
    depends_on:
      wait:
        condition: service_completed_successfully
    volumes:
      - ${CONFDIR}/wwwlb/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
    ports:
      - "80:80"
      - "443:443"

Docker Pull Command

docker pull clickbg/wait