Skip to content

A minimal image that sleeps for a specified time. Created to be used in conjunction with other docker services that need to be delayed.

Notifications You must be signed in to change notification settings

therysin/docker-sleep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

An easy way to delay your docker services by a specified time. Minimal image based on busybox.

Example docker compose usage:

version: "3.8"

services:
  sleep:
    image: ghcr.io/therysin/docker-sleep/sleepy:latest
    container_name: sleepy
    environment:
      - delay=10 #delay time in seconds

  testcontainer:
    image: busybox:stable-musl
    container_name: test
    tty: true
    stdin_open: true
    depends_on:
      sleep:
        condition: service_completed_successfully
    command: sh -c "echo 'Test service is running' "

About

A minimal image that sleeps for a specified time. Created to be used in conjunction with other docker services that need to be delayed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages