Sign inSign up

clickbg/wait

By clickbg

•Updated 4 months ago

Wait for X time

Image
Developer tools
1

10K+

clickbg/wait repository overview

⁠wait

⁠ Avaliable on GitHub⁠

CICD UPDATE PUBLISH

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"

Tag summary

Content type

Image

Digest

sha256:9217e4c0f…

Size

1.7 MB

Last updated

4 months ago

docker pull clickbg/wait