File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ docker-php-ext-configure gd --with-freetype --with-jpeg
1313docker-php-ext-install -j2 bcmath gd intl pdo_mysql zip
1414printf ' memory_limit=1G\n' > " $PHP_INI_DIR /conf.d/ci.ini"
1515
16- # Verify Composer's installer before executing it, and retain the PHP 8.2-compatible 2.8 line.
17- curl --fail --silent --show-error --location https://composer.github.io/installer.sig --output /tmp/composer-installer.sig
18- curl --fail --silent --show-error --location https://getcomposer.org/installer --output /tmp/composer-setup.php
16+ # Retry temporary download failures, then verify the installer before executing it.
17+ # Retain the PHP 8.2-compatible Composer 2.8 line.
18+ curl --fail --silent --show-error --location --retry 3 --retry-all-errors --retry-delay 2 --connect-timeout 15 --max-time 60 https://composer.github.io/installer.sig --output /tmp/composer-installer.sig
19+ curl --fail --silent --show-error --location --retry 3 --retry-all-errors --retry-delay 2 --connect-timeout 15 --max-time 60 https://getcomposer.org/installer --output /tmp/composer-setup.php
1920php -r ' exit(hash_equals(trim(file_get_contents("/tmp/composer-installer.sig")), hash_file("sha384", "/tmp/composer-setup.php")) ? 0 : 1);'
2021php /tmp/composer-setup.php --version=2.8.12 --install-dir=/usr/local/bin --filename=composer
2122rm /tmp/composer-installer.sig /tmp/composer-setup.php
You can’t perform that action at this time.
0 commit comments