Skip to content

Instantly share code, notes, and snippets.

@madflojo
Last active August 12, 2020 06:29
Show Gist options
  • Save madflojo/7ed2c5e00d29a64e51992a81dfed3ec4 to your computer and use it in GitHub Desktop.
Save madflojo/7ed2c5e00d29a64e51992a81dfed3ec4 to your computer and use it in GitHub Desktop.
Bad Entrypoint Script
#!/bin/bash
## Entrypoint script for healthchecks-example. This script is to show how to write an
## entrypoint script that actually passes down signals from Docker.
## Load our DB Password into a runtime only Environment Variable
if [ -f /run/secrets/password ]
then
echo "Loading DB password from secrets file"
DB_PASS=$(cat /run/secrets/password)
export DB_PASS
fi
## Run the Application
healthchecks-example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment