Skip to content

Commit

Permalink
Add Imagick extension to platform images
Browse files Browse the repository at this point in the history
  • Loading branch information
blueo committed Feb 5, 2018
1 parent 9700389 commit e8e4fca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 5.6/platform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ RUN apt-get update -y && apt-get install -y \
libicu-dev \
g++ \
openssh-client \
libmagickwand-dev \
--no-install-recommends && \
curl -sS https://silverstripe.github.io/sspak/install | php -- /usr/local/bin && \
curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && \
pecl install xdebug && \
pecl install xdebug-2.2.7 && \
pecl install imagick-3.4.3 && \
apt-get remove -y libmagickwand-dev && \
apt-get install -y libmagickwand-6.q16-2 && \
rm -r /var/lib/apt/lists/*

# Install PHP Extensions
Expand All @@ -29,6 +33,7 @@ RUN docker-php-ext-configure intl && \
docker-php-ext-configure mysqli --with-mysqli=mysqlnd && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-enable xdebug && \
docker-php-ext-enable imagick && \
sed -i '1 a xdebug.remote_autostart=true' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
sed -i '1 a xdebug.remote_mode=req' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
sed -i '1 a xdebug.remote_handler=dbgp' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
Expand Down
5 changes: 5 additions & 0 deletions 7.1/platform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,22 @@ RUN apt-get update -y && apt-get install -y \
libicu-dev \
g++ \
openssh-client \
libmagickwand-dev \
--no-install-recommends && \
curl -sS https://silverstripe.github.io/sspak/install | php -- /usr/local/bin && \
curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && \
pecl install xdebug && \
pecl install imagick-3.4.3 && \
apt-get remove -y libmagickwand-dev && \
apt-get install -y libmagickwand-6.q16-2 && \
rm -r /var/lib/apt/lists/*

# Install PHP Extensions
RUN docker-php-ext-configure intl && \
docker-php-ext-configure mysqli --with-mysqli=mysqlnd && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-enable xdebug && \
docker-php-ext-enable imagick && \
sed -i '1 a xdebug.remote_autostart=true' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
sed -i '1 a xdebug.remote_mode=req' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
sed -i '1 a xdebug.remote_handler=dbgp' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
Expand Down

0 comments on commit e8e4fca

Please sign in to comment.