-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(infra) Remove composer container and let laravel container install d…
…ependencies
- Loading branch information
Showing
3 changed files
with
19 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
cd /var/www/html/mpmanager | ||
php composer.phar install | ||
echo "Executing command: $@" | ||
|
||
# the main image's CMD arguments are somehow not passed to this script | ||
# so we need to check if there are any arguments and if not, execute apache2-foreground which is the default CMD of the main image | ||
if [ -z "$@" ]; then | ||
echo "No arguments supplied, executing apache2-foreground..." | ||
exec apache2-foreground | ||
else | ||
exec "$@" | ||
fi |
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