mirror of
https://github.com/joomla-docker/docker-joomla.git
synced 2024-11-08 14:21:02 +00:00
Update imagick package to 3.7.0 Also apply hack patch for preprocessor build failures
This commit is contained in:
parent
b72519094c
commit
d3713dc96c
@ -61,9 +61,20 @@ RUN set -ex; \
|
|||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -63,9 +63,20 @@ RUN set -ex; \
|
|||||||
; \
|
; \
|
||||||
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -61,9 +61,20 @@ RUN set -ex; \
|
|||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -61,9 +61,20 @@ RUN set -ex; \
|
|||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -63,9 +63,20 @@ RUN set -ex; \
|
|||||||
; \
|
; \
|
||||||
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -61,9 +61,20 @@ RUN set -ex; \
|
|||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -63,9 +63,20 @@ RUN set -ex; \
|
|||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -65,9 +65,20 @@ RUN set -ex; \
|
|||||||
; \
|
; \
|
||||||
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -63,9 +63,20 @@ RUN set -ex; \
|
|||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -63,9 +63,20 @@ RUN set -ex; \
|
|||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -65,9 +65,20 @@ RUN set -ex; \
|
|||||||
; \
|
; \
|
||||||
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -63,9 +63,20 @@ RUN set -ex; \
|
|||||||
zip \
|
zip \
|
||||||
; \
|
; \
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
pecl install imagick-3.7.0; \
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
docker-php-ext-enable imagick; \
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
rm -r /tmp/pear; \
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
@ -106,9 +106,26 @@ RUN set -ex; \
|
|||||||
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
|
||||||
{{ ) else "" end -}}
|
{{ ) else "" end -}}
|
||||||
# https://pecl.php.net/package/imagick
|
# https://pecl.php.net/package/imagick
|
||||||
|
{{ if true then ( -}}
|
||||||
|
# https://github.com/Imagick/imagick/commit/5ae2ecf20a1157073bad0170106ad0cf74e01cb6 (causes a lot of build failures, but strangely only intermittent ones)
|
||||||
|
# see also https://github.com/Imagick/imagick/pull/641
|
||||||
|
# this is "pecl install imagick-3.7.0", but by hand so we can apply a small hack / part of the above commit
|
||||||
|
# Thanks to @tianon https://github.com/docker-library/wordpress/commit/509adb58cbc7463a03e317931df65868ec8a3e92
|
||||||
|
curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; \
|
||||||
|
echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; \
|
||||||
|
tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; \
|
||||||
|
sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; \
|
||||||
|
grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; \
|
||||||
|
docker-php-ext-install /tmp/imagick-3.7.0; \
|
||||||
|
rm -rf imagick.tgz /tmp/imagick-3.7.0; \
|
||||||
|
# TODO when imagick has another release, we should ditch this whole block and just update instead
|
||||||
|
{{ ) else ( -}}
|
||||||
pecl install imagick-3.7.0; \
|
pecl install imagick-3.7.0; \
|
||||||
docker-php-ext-enable imagick; \
|
docker-php-ext-enable imagick; \
|
||||||
rm -r /tmp/pear; \
|
rm -r /tmp/pear; \
|
||||||
|
{{ ) end -}}
|
||||||
\
|
\
|
||||||
# some misbehaving extensions end up outputting to stdout
|
# some misbehaving extensions end up outputting to stdout
|
||||||
out="$(php -r 'exit(0);')"; \
|
out="$(php -r 'exit(0);')"; \
|
||||||
|
Loading…
Reference in New Issue
Block a user