Skip to content

Commit

Permalink
Update to PHP 7.4 (#9)
Browse files Browse the repository at this point in the history
* Run apt upgrade to pull in new LE root.

* Upgrade to PHP 7.4

* Fix conf.d path

Co-authored-by: Dan Feder <dan.feder@civicactions.com>
  • Loading branch information
grugnog and dafeder authored Oct 5, 2021
1 parent f5c2d67 commit 1d8feba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ FROM drydockcloud/${BASE_IMAGE_TAG}:latest
ARG DRUSH_VER

ENV DEBIAN_FRONTEND=noninteractive
ENV PHP_INI_SCAN_DIR="/etc/php/7.2/cli/conf.d:/var/www/src/docker/etc/php"
ENV PHP_INI_SCAN_DIR="/usr/local/php/etc/conf.d:/var/www/src/docker/etc/php"

RUN \
apt-get update &&\
apt-get upgrade -y &&\
# Add Nodejs source.
curl -sL https://deb.nodesource.com/setup_14.x | bash &&\
apt-get update &&\
Expand Down Expand Up @@ -38,7 +40,7 @@ RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" &&

# Allow composer superuser and set environment to use composer executables path
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV PATH "$PATH:/root/.composer/vendor/bin"
ENV PATH "$PATH:/root/.config/composer/vendor/bin"

# Install Drush, PHPCS and Drupal Coding Standards
RUN composer global require "drush/drush:$DRUSH_VER" squizlabs/php_codesniffer drupal/coder && \
Expand All @@ -48,7 +50,7 @@ RUN composer global require "drush/drush:$DRUSH_VER" squizlabs/php_codesniffer d

# Move .composer to give way to the user's .composer config. Make sure to
# update the PATH.
RUN mv /root/.composer /root/composer
RUN mv /root/.config/composer /root/composer
ENV PATH /root/composer/vendor/bin:$PATH

# Add git completion for the cli
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-include env_make

TAG ?= latest
BASE_IMAGE_TAG ?= drupal-acquia-php-7.3
BASE_IMAGE_TAG ?= drupal-acquia-php-7.4

ifeq ($(TAG), classic)
DRUSH_VER = "^8"
Expand Down

0 comments on commit 1d8feba

Please sign in to comment.