Created
August 13, 2020 05:00
-
-
Save madflojo/e9114db3036c7c767ed3517d4c92ea12 to your computer and use it in GitHub Desktop.
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 | |
exec healthchecks-example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment