springboot_study/basic-delayed_start at master · sergueik/springboot_study · GitHub
Skip to content

Latest commit

 

History

History

Folders and files

README.md

Info

Basic ash shell script extracted from Docker compose service with sole purpose of synchronizarion of other services example converted too use alpine base image, modified to accept the hostname argument

Usage

To guarantee that the_database and another_service are ready before running the_web_server:

export COMPOSE_HTTP_TIMEOUT=600
docker-compose  -f docker-compose.yaml run --rm start_dependencies

where the service is defined as:

  start_dependencies:
    image: dadarek/wait-for-dependencies
    environment:
      - SLEEP_LENGTH: 0.5

See Also

  • shell script to wait for specified HOST and PORT with TIMEOUT (cloned locally)
  • shell script to wait for specified HOST and PORT with TIMEOUT (cloned locally)
  • variant of the same script with support of TCP / HTTP "protocol" argument
  • Docker Compose startup shutdown order documentation

Author

Serguei Kouzmine

  • variant of the same script with support of TCP / HTTP "protocol" argument
  • Docker Compose startup shutdown order documentation

Author

Serguei Kouzmine