Sign inSign up

cbp44/dockerize

By cbp44

•Updated about 7 years ago

Ubuntu images with dockerize pre-installed.

Image
1

924

cbp44/dockerize repository overview

⁠dockerize Docker Cloud Build Status

Dockerize⁠ is a very useful utility written by Jason Wilder⁠ to simplify running applications in Docker containers.

It allows you to:

  • Generate application configuration files at container startup time from templates and container environment variables
  • Tail multiple log files to stdout and/or stderr
  • Wait for other services to be available using TCP, HTTP(S), unix before starting the main process.

⁠Why create these images?

The jwilder/dockerize⁠ images are alpine⁠ based and just copying /usr/local/bin/dockerize from one of his images into an ubuntu⁠ image fails with dependency issues when you try running dockerize.

⁠Usage

⁠Command line usage
# Displays dockerize help
docker run --rm cbp44/dockerize:latest --help
⁠Dockerfile usage
FROM cbp44/dockerize:latest as dockerize

# Waits until google.com is reachable inside of the container and runs echo command if it eventually is reachable. If it isn't reachable in 10 seconds, the container exits with failed exit status.
CMD dockerize -wait http://google.com && echo "Hello World"

See more usage examples here⁠.

Tag summary

Content type

Image

Digest

Size

28.4 MB

Last updated

about 7 years ago

docker pull cbp44/dockerize