GEWIS / gewisweb

GEWIS Website
https://gewis.nl
GNU General Public License v3.0
16 stars 33 forks source link

Fix `Imagick` builds intermittently failing #1845

Closed tomudding closed 1 week ago

tomudding commented 1 week ago

Current behaviour

Ever since we moved to PHP 8.3 we have had intermittent failures of the Docker image builds due to an issue in the Imagick source. We see the same for the GitHub actions after merging GH-1844.

Desired behaviour

Instead of

    && pecl install imagick \
    && docker-php-ext-enable imagick \

we build from source:

    && mkdir -p /usr/src/php/ext/imagick \
    && curl -fsSL https://github.com/Imagick/imagick/archive/28f27044e435a2b203e32675e942eb8de620ee58.tar.gz | tar xvz -C "/usr/src/php/ext/imagick" --strip 1 \
    && docker-php-ext-install imagick \

Steps to reproduce

Try to build the Docker images and sometimes it will not work.

Website version

72c7136

What operating are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Other information

No response