Skip to content

Commit

Permalink
Try removing pickle. (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: desrosj <[email protected]>
  • Loading branch information
desrosj and desrosj authored Dec 4, 2024
1 parent f41510f commit 4202f99
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 36 deletions.
9 changes: 3 additions & 6 deletions images/8.0/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ RUN set -ex; \
\
docker-php-ext-install gd opcache mysqli zip exif intl mbstring xml xsl; \
\
curl --location --output /usr/local/bin/pickle https://github.com/FriendsOfPHP/pickle/releases/download/v0.7.11/pickle.phar; \
chmod +x /usr/local/bin/pickle; \
\
pickle install memcached-3.2.0; \
pickle install xdebug-3.4.0; \
pickle install imagick; \
pecl install memcached-3.2.0; \
pecl install xdebug-3.4.0; \
pecl install imagick; \
docker-php-ext-enable imagick; \
\
curl --silent --fail --location --retry 3 --output /tmp/installer.php --url https://getcomposer.org/installer; \
Expand Down
9 changes: 3 additions & 6 deletions images/8.1/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ RUN set -ex; \
\
docker-php-ext-install gd opcache mysqli zip exif intl mbstring xml xsl; \
\
curl --location --output /usr/local/bin/pickle https://github.com/FriendsOfPHP/pickle/releases/download/v0.7.11/pickle.phar; \
chmod +x /usr/local/bin/pickle; \
\
pickle install memcached-3.2.0; \
pickle install xdebug-3.4.0; \
pickle install imagick; \
pecl install memcached-3.2.0; \
pecl install xdebug-3.4.0; \
pecl install imagick; \
docker-php-ext-enable imagick; \
\
curl --silent --fail --location --retry 3 --output /tmp/installer.php --url https://getcomposer.org/installer; \
Expand Down
9 changes: 3 additions & 6 deletions images/8.2/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ RUN set -ex; \
\
docker-php-ext-install gd opcache mysqli zip exif intl mbstring xml xsl; \
\
curl --location --output /usr/local/bin/pickle https://github.com/FriendsOfPHP/pickle/releases/download/v0.7.11/pickle.phar; \
chmod +x /usr/local/bin/pickle; \
\
pickle install memcached-3.2.0; \
pickle install xdebug-3.4.0; \
pickle install imagick; \
pecl install memcached-3.2.0; \
pecl install xdebug-3.4.0; \
pecl install imagick; \
docker-php-ext-enable imagick; \
\
curl --silent --fail --location --retry 3 --output /tmp/installer.php --url https://getcomposer.org/installer; \
Expand Down
5 changes: 1 addition & 4 deletions images/8.3/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ RUN set -ex; \
\
docker-php-ext-install gd opcache mysqli zip exif intl mbstring xml xsl; \
\
curl --location --output /usr/local/bin/pickle https://github.com/FriendsOfPHP/pickle/releases/download/v0.7.11/pickle.phar; \
chmod +x /usr/local/bin/pickle; \
\
pickle install xdebug-3.4.0; \
pecl install xdebug-3.4.0; \
\
curl --silent --fail --location --retry 3 --output /tmp/installer.php --url https://getcomposer.org/installer; \
curl --silent --fail --location --retry 3 --output /tmp/installer.sig --url https://composer.github.io/installer.sig; \
Expand Down
5 changes: 1 addition & 4 deletions images/8.4/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ RUN set -ex; \
\
docker-php-ext-install gd opcache mysqli zip exif intl mbstring xml xsl; \
\
curl --location --output /usr/local/bin/pickle https://github.com/FriendsOfPHP/pickle/releases/download/v0.7.11/pickle.phar; \
chmod +x /usr/local/bin/pickle; \
\
pickle install xdebug-3.4.0; \
pecl install xdebug-3.4.0; \
\
curl --silent --fail --location --retry 3 --output /tmp/installer.php --url https://getcomposer.org/installer; \
curl --silent --fail --location --retry 3 --output /tmp/installer.sig --url https://composer.github.io/installer.sig; \
Expand Down
11 changes: 1 addition & 10 deletions update.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,21 +423,12 @@
if ( $config['pecl_extensions'] ) {
$install_extensions .= " \\\n\t\\\n";

if ( version_compare( $version, '7.4', '>' ) === true ) {
$install_extensions .= "\tcurl --location --output /usr/local/bin/pickle https://github.com/FriendsOfPHP/pickle/releases/download/v0.7.11/pickle.phar; \\\n";
$install_extensions .= "\tchmod +x /usr/local/bin/pickle; \\\n\t\\\n";
}

$install_extensions .= array_reduce( $config['pecl_extensions'], function ( $command, $extension ) use ( $version ) {
if ( $command ) {
$command .= " \\\n";
}

if ( version_compare( $version, '7.4', '>' ) === true ) {
$command .= "\tpickle install $extension;";
} else {
$command .= "\tpecl install $extension;";
}
$command .= "\tpecl install $extension;";

if ( 0 === strpos( $extension, 'imagick' ) ) {
$command .= " \\\n\tdocker-php-ext-enable imagick;";
Expand Down

0 comments on commit 4202f99

Please sign in to comment.