Skip to content

Commit

Permalink
Merge pull request #10 from ecelis/IAN-20/missing-imagick
Browse files Browse the repository at this point in the history
fix(image): mcrypt and imagick extensions missing [IAN-20]
  • Loading branch information
ecelis authored Jul 4, 2023
2 parents 1c2e4d0 + eb766f4 commit 90d20bd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ RUN apt-get update && apt-get install -y \
&& docker-php-ext-install mysqli \
&& docker-php-ext-install curl \
&& docker-php-ext-install mbstring \
&& docker-php-ext-install zip \
&& yes '' | pecl install mcrypt-1.0.2 \
&& yes '' | pecl install imagick \
&& docker-php-ext-enable mcrypt imagick \
&& apt-get clean all \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/* ; \
pecl update-channels ; \
rm -rf /tmp/pear ~/.pearrc
&& docker-php-ext-install zip
RUN /usr/bin/yes '' | /usr/local/bin/pecl install mcrypt-1.0.6
RUN /usr/bin/yes '' | /usr/local/bin/pecl install imagick
RUN apt-get clean all \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/* ; \
pecl update-channels ; \
rm -rf /tmp/pear ~/.pearrc
# ianseo setup
COPY src/ /opt/ianseo
RUN chmod -R a+wX /opt/ianseo
Expand All @@ -39,5 +38,6 @@ RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' \
/etc/apache2/apache2.conf /etc/apache2/conf-enabled/*.conf
COPY apache/ianseo.conf /etc/apache2/conf-enabled/
COPY apache/ianseo.ini /etc/apache2/conf-enabled/
COPY php/php.ini /usr/local/etc/php/
COPY php/php.ini /usr/local/etc/php
COPY php/docker-php-ext-ianseo.ini /usr/local/etc/php/conf.d
# COPY php/ianseo.config.inc.php /opt/ianseo/Common/config.inc.php
2 changes: 2 additions & 0 deletions php/docker-php-ext-ianseo.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extension=mcrypt.so
extension=imagick.so
2 changes: 1 addition & 1 deletion php/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1934,4 +1934,4 @@ ldap.max_links = -1

; Local Variables:
; tab-width: 4
; End:
; End:

0 comments on commit 90d20bd

Please sign in to comment.