-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate secrets to vault (#482)
* chore: migrate staging secrets to valult * chore: migrate production secrets to vault * chore: add load_secrets_and_run file * chore: add volumeMounts to the production * chore: remove copying the load_secrets_and_run.sh from Dockerfile * chore: add entrypoint to dockerfile * chore: move EXTRYPOINT to right above CMD * chore: remove dumb-init loading * chore: update the location of load_secrets_and_run.sh * chore: Make the script executable
- Loading branch information
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
CMD="$@" | ||
|
||
if [ ! -z "$SECRETS_FILE" ] | ||
then | ||
echo "SECRETS_FILE env var is defined. Sourcing secrets file..." | ||
source "$SECRETS_FILE" | ||
fi | ||
|
||
echo "Running command: $CMD" | ||
$CMD |