Skip to content
Snippets Groups Projects
Commit dbaaf736 authored by Chris Shantz's avatar Chris Shantz
Browse files

Update Dockerfile changing the rest of the places we reference php5.6.

parent c00a6561
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ RUN apt-get install -y \
php7.1-mcrypt \
php7.1-zip \
php-pear \
libapache2-mod-php5.6 \
libapache2-mod-php7.1 \
optipng \
pdftk \
jpegoptim \
......@@ -111,15 +111,15 @@ RUN a2enconf php5.6-fpm
RUN service php5.6-fpm restart
## Make sure we are running php5.6
RUN update-alternatives --set php /usr/bin/php5.6
RUN a2enmod php5.6
RUN update-alternatives --set php /usr/bin/php7.1
RUN a2enmod php7.1
RUN service apache2 restart
## Check version of PHP
RUN php -v
## Install Drupal.
RUN drush dl -v -d drupal-7.60 --destination="/var/www" --drupal-project-rename="drupal7"
RUN drush dl -v -d drupal-7.61 --destination="/var/www" --drupal-project-rename="drupal7"
RUN chown -R www-data:www-data /var/www/
......@@ -188,18 +188,18 @@ COPY docker-entrypoint-d7.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint-d7.sh
## Add Drupal specific changes for PHP to the php.ini files.
RUN sed -i "s/display_errors = .*/display_errors = On/" /etc/php/5.6/apache2/php.ini && \
sed -i "s/display_errors = .*/display_errors = On/" /etc/php/5.6/fpm/php.ini && \
sed -i "s/display_errors = .*/display_errors = On/" /etc/php/5.6/cli/php.ini && \
sed -i "s/max_execution_time =.*/max_execution_time = 240/" /etc/php/5.6/apache2/php.ini && \
sed -i "s/max_execution_time =.*/max_execution_time = 240/" /etc/php/5.6/cli/php.ini && \
sed -i "s/max_input_time = .*/max_input_time = 240/" /etc/php/5.6/apache2/php.ini && \
sed -i "s/max_input_time = .*/max_input_time = 240/" /etc/php/5.6/cli/php.ini && \
sed -i "s/memory_limit = .*/memory_limit = 768M/" /etc/php/5.6/apache2/php.ini && \
sed -i "s/memory_limit = .*/memory_limit = 768M/" /etc/php/5.6/cli/php.ini && \
sed -i "s/; max_input_vars = .*/max_input_vars = 10000/" /etc/php/5.6/apache2/php.ini && \
sed -i "s/;date.timezone = */date.timezone = America\/Toronto/" /etc/php/5.6/apache2/php.ini && \
sed -i "s/;date.timezone = */date.timezone = America\/Toronto/" /etc/php/5.6/cli/php.ini
RUN sed -i "s/display_errors = .*/display_errors = On/" /etc/php/7.1/apache2/php.ini && \
sed -i "s/display_errors = .*/display_errors = On/" /etc/php/7.1/fpm/php.ini && \
sed -i "s/display_errors = .*/display_errors = On/" /etc/php/7.1/cli/php.ini && \
sed -i "s/max_execution_time =.*/max_execution_time = 240/" /etc/php/7.1/apache2/php.ini && \
sed -i "s/max_execution_time =.*/max_execution_time = 240/" /etc/php/7.1/cli/php.ini && \
sed -i "s/max_input_time = .*/max_input_time = 240/" /etc/php/7.1/apache2/php.ini && \
sed -i "s/max_input_time = .*/max_input_time = 240/" /etc/php/7.1/cli/php.ini && \
sed -i "s/memory_limit = .*/memory_limit = 768M/" /etc/php/7.1/apache2/php.ini && \
sed -i "s/memory_limit = .*/memory_limit = 768M/" /etc/php/7.1/cli/php.ini && \
sed -i "s/; max_input_vars = .*/max_input_vars = 10000/" /etc/php/7.1/apache2/php.ini && \
sed -i "s/;date.timezone = */date.timezone = America\/Toronto/" /etc/php/7.1/apache2/php.ini && \
sed -i "s/;date.timezone = */date.timezone = America\/Toronto/" /etc/php/7.1/cli/php.ini
# Expose the default Apache port.
EXPOSE 80
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment