-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/2.3.14' into craft-webpack
- Loading branch information
Showing
11 changed files
with
172 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 |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
# ASSETS | ||
/cms/web/assets/* | ||
/cms/web/cpresources/* | ||
/cms/web/dist/* | ||
|
||
# BUILD FILES | ||
node_modules | ||
|
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
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,7 +1,7 @@ | ||
xdebug.default_enable=1 | ||
xdebug.remote_enable=1 | ||
xdebug.remote_port=9001 | ||
xdebug.remote_port=9000 | ||
xdebug.remote_handler=dbgp | ||
xdebug.remote_connect_back=0 | ||
xdebug.remote_connect_back=1 | ||
xdebug.remote_host=host.docker.internal | ||
xdebug.remote_autostart=1 |
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,74 @@ | ||
FROM php:7.3-fpm | ||
|
||
# Install packages | ||
RUN apt-get update \ | ||
&& \ | ||
# apt Debian packages | ||
apt-get install -y \ | ||
apt-utils \ | ||
autoconf \ | ||
ca-certificates \ | ||
curl \ | ||
g++ \ | ||
libbz2-dev \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng-dev \ | ||
libpq-dev \ | ||
libssl-dev \ | ||
libicu-dev \ | ||
libmagickwand-dev \ | ||
libzip-dev \ | ||
unzip \ | ||
zip \ | ||
&& \ | ||
# pecl PHP extensions | ||
pecl install \ | ||
imagick-3.4.4 \ | ||
redis \ | ||
&& \ | ||
# Configure PHP extensions | ||
docker-php-ext-configure \ | ||
gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | ||
&& \ | ||
# Install PHP extensions | ||
docker-php-ext-install \ | ||
bcmath \ | ||
bz2 \ | ||
exif \ | ||
ftp \ | ||
gettext \ | ||
gd \ | ||
iconv \ | ||
intl \ | ||
mbstring \ | ||
opcache \ | ||
pdo \ | ||
shmop \ | ||
sockets \ | ||
sysvmsg \ | ||
sysvsem \ | ||
sysvshm \ | ||
zip \ | ||
&& \ | ||
# Enable PHP extensions | ||
docker-php-ext-enable \ | ||
imagick \ | ||
redis \ | ||
# Clean apt repo caches that don't need to be part of the image | ||
&& \ | ||
apt-get clean \ | ||
&& \ | ||
# Clean out directories that don't need to be part of the image | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Append our php.ini overrides to the end of the file | ||
RUN echo "upload_max_filesize = 10M" > /usr/local/etc/php/php.ini && \ | ||
echo "post_max_size = 10M" >> /usr/local/etc/php/php.ini && \ | ||
echo "max_execution_time = 300" >> /usr/local/etc/php/php.ini && \ | ||
echo "memory_limit = 256M" >> /usr/local/etc/php/php.ini && \ | ||
echo "opcache.revalidate_freq = 0" >> /usr/local/etc/php/php.ini && \ | ||
echo "opcache.validate_timestamps = 1" >> /usr/local/etc/php/php.ini | ||
|
||
# Copy the `zzz-docker.conf` file into place for php-fpm | ||
COPY ./zzz-docker.conf /usr/local/etc/php-fpm.d/zzz-docker.conf |
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,4 @@ | ||
[www] | ||
pm.max_children = 10 | ||
pm.process_idle_timeout = 10s | ||
pm.max_requests = 1000 |
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,56 @@ | ||
FROM nystudio107/php-prod-base | ||
|
||
# Install packages | ||
RUN apt-get update \ | ||
&& \ | ||
# apt Debian packages | ||
apt-get install -y \ | ||
nano \ | ||
&& \ | ||
# Install PHP extensions | ||
docker-php-ext-install \ | ||
pdo_mysql \ | ||
&& \ | ||
# Install Composer | ||
curl -sS https://getcomposer.org/installer | php -- --version=1.10.16 --install-dir=/usr/local/bin/ --filename=composer \ | ||
# Clean apt repo caches that don't need to be part of the image | ||
&& \ | ||
apt-get clean \ | ||
&& \ | ||
# Clean out directories that don't need to be part of the image | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
WORKDIR /var/www/project | ||
|
||
COPY ./run_queue.sh . | ||
RUN chmod a+x run_queue.sh | ||
|
||
# Create the storage directory and make it writeable by PHP | ||
RUN mkdir -p /var/www/project/cms/storage && \ | ||
mkdir -p /var/www/project/cms/storage/runtime && \ | ||
chown -R www-data:www-data /var/www/project/cms/storage | ||
|
||
# Create the cpresources directory and make it writeable by PHP | ||
RUN mkdir -p /var/www/project/cms/web/cpresources && \ | ||
chown -R www-data:www-data /var/www/project/cms/web/cpresources | ||
|
||
WORKDIR /var/www/project/cms | ||
|
||
# Force permissions, update Craft, and start php-fpm | ||
|
||
# Do a `composer install` without running any Composer scripts | ||
# - If `composer.lock` is present, it will install what is in the lock file | ||
# - If `composer.lock` is missing, it will update to the latest dependencies | ||
# and create the `composer.lock` file | ||
# This automatic running adds to the startup overhead of `docker-compose up` | ||
# but saves far more time in not having to deal with out of sync versions | ||
# when working with teams or multiple environments | ||
CMD composer install --verbose --no-progress --no-scripts --optimize-autoloader --no-interaction \ | ||
&& \ | ||
chown -R www-data:www-data /var/www/project/cms/vendor \ | ||
&& \ | ||
chown -R www-data:www-data /var/www/project/cms/storage \ | ||
&& \ | ||
composer craft-update \ | ||
&& \ | ||
php-fpm |
File renamed without changes.