Merge branch 'beta' into 'master'
Fix composer run as root Closes #169 See merge request ric_harvey/nginx-php-fpm!267
This commit is contained in:
@@ -10,7 +10,7 @@ If you have improvements or suggestions please open an issue or pull request on
|
||||
### Versioning
|
||||
| Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version |
|
||||
|-----|-------|-----|--------|--------|
|
||||
| latest/1.10.2 | Master Branch |1.18.0 | 7.4.9 | 3.12 |
|
||||
| latest/1.10.3 | Master Branch |1.18.0 | 7.4.9 | 3.12 |
|
||||
|
||||
|
||||
_Note:_ The image is now aviable on x86_64 and Arm systems!
|
||||
|
||||
@@ -22,6 +22,7 @@ The latest tag will always follow the master branch in git. the other versions w
|
||||
| 1.10.0 | 7.4.8 |1.18.0 | 3.12 | 0.3.13 | PHP 7.4.8 + Nginx 1.18.0 + arm builds |
|
||||
| 1.10.1 | 7.4.9 |1.18.0 | 3.12 | 0.3.13 | bump to PHP 7.4.9 |
|
||||
| 1.10.2 | 7.4.9 |1.18.0 | 3.12 | 0.3.13 | Swap Docker file from ADD to COPY |
|
||||
| 1.10.3 | 7.4.9 |1.18.0 | 3.12 | 0.3.14 | run composer as non root user |
|
||||
|
||||
These tags will be created on GitLab and as tags in docker hub.
|
||||
|
||||
|
||||
@@ -212,14 +212,15 @@ if [[ "$RUN_SCRIPTS" == "1" ]] ; then
|
||||
fi
|
||||
|
||||
if [ -z "$SKIP_COMPOSER" ]; then
|
||||
# Allow nginx user to call composer closes #169
|
||||
# Try auto install for composer
|
||||
if [ -f "/var/www/html/composer.lock" ]; then
|
||||
if [ "$APPLICATION_ENV" == "development" ]; then
|
||||
composer global require hirak/prestissimo
|
||||
composer install --working-dir=/var/www/html
|
||||
su - nginx -c 'composer global require hirak/prestissimo'
|
||||
su - nginx -c 'composer install --working-dir=/var/www/html'
|
||||
else
|
||||
composer global require hirak/prestissimo
|
||||
composer install --no-dev --working-dir=/var/www/html
|
||||
su - nginx -c 'composer global require hirak/prestissimo'
|
||||
su - nginx -c 'composer install --no-dev --working-dir=/var/www/html'
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user