-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better logging & image improvement (#31)
* wip * wip * wip * wip * done
- Loading branch information
1 parent
76d7950
commit f4c82d3
Showing
9 changed files
with
55 additions
and
36 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 |
---|---|---|
@@ -1,12 +1,25 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
echo " | ||
____ _ ___ | ||
| _ \ ___ ___| |/ (_)_ __ __ _ | ||
| | | |/ _ \ / __| ' /| | '_ \ / _ | | ||
| |_| | (_) | (__| . \| | | | | (_| | | ||
|____/ \___/ \___|_|\_\_|_| |_|\__, | | ||
|___/ | ||
"; | ||
|
||
# Run user scripts, if they exist | ||
for f in /var/www/html/.docker/scripts/*.sh; do | ||
# Bail out this loop if any script exits with non-zero status code | ||
bash "$f" || break | ||
done | ||
|
||
echo "Welcome to DocKing"; | ||
if [ "$DB_CONNECTION" = "sqlite" ]; then | ||
echo "For SQLite users, please note down the UID & GID, then run CHOWN on the host machine" | ||
id www-data | ||
fi | ||
|
||
echo "Starting the application using supervisor..."; | ||
exec /usr/bin/supervisord --nodaemon |
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,3 @@ | ||
[global] | ||
error_log = /proc/1/fd/1 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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