Skip to content

Instantly share code, notes, and snippets.

@vpack
Created June 18, 2017 16:10
Show Gist options
  • Save vpack/0605e5af15067ee113d0ce516db66d17 to your computer and use it in GitHub Desktop.
Save vpack/0605e5af15067ee113d0ce516db66d17 to your computer and use it in GitHub Desktop.
Docker Entrypoint Samples

Sample Entry Point scripts

from HAProxy container

cat docker-entrypoint.sh
#!/bin/sh
set -e

# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
	set -- haproxy "$@"
fi

exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment