forked from forkcms/forkcms
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'forkcms/master'
- Loading branch information
Showing
1,562 changed files
with
24,485 additions
and
38,137 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,8 @@ | ||
# Use this file to set your environment variables for Docker | ||
|
||
# XDebug variables | ||
# Configure the IP of your hostmachine, or use the special Mac-only DNS name which will resolve to the internal IP of the host. | ||
DOCKER_HOST_IP=docker.for.mac.localhost | ||
PHP_IDE_CONFIG=serverName=localhost | ||
XDEBUG_IDEKEY=PHPSTORM | ||
XDEBUG_PORT=9000 |
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 |
---|---|---|
|
@@ -25,3 +25,4 @@ | |
|
||
# Docker | ||
var/docker/db/data/* | ||
.env |
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,16 +1,17 @@ | ||
FROM php:7.1-apache | ||
MAINTAINER Fork CMS <[email protected]> | ||
LABEL maintainer="Fork CMS <[email protected]>" | ||
|
||
# Enable Apache mod_rewrite | ||
RUN a2enmod rewrite | ||
|
||
# Install GD2 | ||
RUN apt-get update && apt-get install -y \ | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng12-dev && \ | ||
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \ | ||
docker-php-ext-install -j$(nproc) gd | ||
docker-php-ext-install -j$(nproc) gd && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install pdo_mysql | ||
RUN docker-php-ext-install pdo_mysql | ||
|
@@ -22,25 +23,28 @@ RUN docker-php-ext-install mbstring | |
RUN docker-php-ext-install zip | ||
|
||
# Install intl | ||
RUN apt-get update && apt-get install -y \ | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
g++ \ | ||
libicu-dev \ | ||
zlib1g-dev && \ | ||
docker-php-ext-configure intl && \ | ||
docker-php-ext-install intl | ||
docker-php-ext-install intl && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Custom php.ini settings | ||
COPY var/docker/php/php.ini ${PHP_INI_DIR}/php.ini | ||
|
||
# Install and configure XDebug | ||
RUN pecl install xdebug && docker-php-ext-enable xdebug | ||
COPY var/docker/php/xdebug.ini ${PHP_INI_DIR}/conf.d/xdebug.init | ||
RUN echo 'xdebug.remote_host="${DOCKER_HOST_IP}"' >> ${PHP_INI_DIR}/conf.d/xdebug.ini | ||
RUN pecl install xdebug && \ | ||
docker-php-ext-enable xdebug && \ | ||
rm -rf /tmp/pear | ||
|
||
# Install composer | ||
RUN curl -sS https://getcomposer.org/installer | \ | ||
php -- --install-dir=/usr/bin/ --filename=composer | ||
|
||
# Set the work directory to /var/www/html so all subsequent commands in this file start from that directory. | ||
# Also set this work directory so that it uses this directory everytime we use docker exec. | ||
WORKDIR /var/www/html | ||
|
||
# Install the composer dependencies (no autoloader yet as that invalidates the docker cache) | ||
|
@@ -49,11 +53,15 @@ COPY composer.lock ./ | |
RUN composer install --prefer-dist --no-dev --no-autoloader --no-scripts --no-progress --no-suggest && \ | ||
composer clear-cache | ||
|
||
# Bundle source code into container | ||
# Bundle source code into container. Important here is that copying is done based on the rules defined in the .dockerignore file. | ||
COPY . /var/www/html | ||
|
||
# Dump the autoloader | ||
RUN composer dump-autoload --optimize --classmap-authoritative --no-dev | ||
|
||
# Give apache write access to host | ||
RUN chown -R www-data:www-data /var/www/html | ||
|
||
# This specifies on which port the application will run. This is pure communicative and makes this 12 factor app compliant | ||
# (see https://12factor.net/port-binding). | ||
EXPOSE 80 443 |
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 @@ | ||
5.0.7 | ||
5.1.0 |
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
Oops, something went wrong.