-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): introduce dockerrun.bash
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Update certificate authority index - | ||
# environment may have mounted more authorities | ||
# | ||
update-ca-certificates | ||
# | ||
# Enable debug flag based on GEN3_DEBUG environment | ||
# | ||
if [ -f ./wsgi.py && "$GEN3_DEBUG" == "True" ]; then | ||
echo -e "\napplication.debug=True\n" >> ./wsgi.py | ||
fi | ||
# | ||
# Kubernetes may mount jwt-keys as a tar ball | ||
# | ||
if [ -f /fence/jwt-keys.tar ]; then | ||
( | ||
cd /fence | ||
tar xvf jwt-keys.tar | ||
if [ -d jwt-keys ]; then | ||
mkdir -p keys | ||
mv jwt-keys/* keys/ | ||
fi | ||
) | ||
fi | ||
rm -rf /var/run/apache2/apache2.pid | ||
/usr/sbin/apache2ctl -D FOREGROUND |