-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- prod entrypoint makes sure the database schema is up-to-date but doesn't add data - dev entrypoint makes sure the database schema is up-to-date and creates admin user, etc. - allow override of LOG_LEVEL via environment variable Change-Id: Id56975f2f7abab324f6603930b71fcedb57dd3d1
- Loading branch information
Showing
5 changed files
with
26 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
if ! python3 bin/dci-wait-for-db; then | ||
echo "Unable to wait for the DB. Exiting." 1>&2 | ||
exit 0 | ||
fi | ||
|
||
if ! python3 bin/dci-dbinit; then | ||
echo "Unable to init the DB. Exiting." 1>&2 | ||
exit 0 | ||
fi | ||
|
||
pubkey=$(python3 bin/dci-get-pem-ks-key.py ${SSO_URL} ${SSO_REALM}) | ||
|
||
export SSO_PUBLIC_KEY="$pubkey" | ||
echo $SSO_PUBLIC_KEY | ||
exec "$@" |
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