Skip to content

Instantly share code, notes, and snippets.

@madflojo
Created August 13, 2020 05:00
Show Gist options
  • Save madflojo/e9114db3036c7c767ed3517d4c92ea12 to your computer and use it in GitHub Desktop.
Save madflojo/e9114db3036c7c767ed3517d4c92ea12 to your computer and use it in GitHub Desktop.
#!/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