-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create docker images with php 8.4 version
- Loading branch information
Showing
7 changed files
with
196 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# first arg is `-f` or `--some-option` | ||
if [ "${1#-}" != "$1" ]; then | ||
set -- php-fpm "$@" | ||
fi | ||
|
||
if [ "$1" = 'php-fpm' ] || [ "$1" = 'bin/console' ]; then | ||
if [ ! -d composer.json ]; then | ||
# copy the created symfony project to the working directory | ||
cp -a "${SYMFONY_BUILD_PROJECT}/${SYMFONY_PROJECT_DIRECTORY_NAME}/." . | ||
fi | ||
|
||
if [ "$APP_ENV" != 'prod' ]; then | ||
composer install --prefer-dist --no-progress --no-interaction | ||
fi | ||
|
||
#setfacl -R -m u:www-data:rwX -m u:"$(whoami)":rwX var | ||
#setfacl -dR -m u:www-data:rwX -m u:"$(whoami)":rwX var | ||
|
||
# start symfony server | ||
if [ "$SG_SERVER_ENABLED" = true ]; then | ||
symfony server:ca:install | ||
symfony server:start | ||
fi | ||
fi | ||
|
||
exec docker-php-entrypoint "$@" |
File renamed without changes.
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 +1,3 @@ | ||
.idea | ||
symfony | ||
compose.yaml |
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