Last active
August 12, 2020 06:29
-
-
Save madflojo/7ed2c5e00d29a64e51992a81dfed3ec4 to your computer and use it in GitHub Desktop.
Bad Entrypoint Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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