Since 2026/06/02, I have some Gitlab CI pipelines which build my docker images in error. Example: https://gitlab.com/florenttorregrosa-docker/images/docker-ci-php/-/jobs/14649757540
The last time it was ok was on 2026/05/02. Example: https://gitlab.com/florenttorregrosa-docker/images/docker-ci-php/-/jobs/14184735120
The error message is:
#25 [stage-0 14/16] RUN curl -sSL https://phar.io/releases/phive.phar -o phive.phar && curl -sSL https://phar.io/releases/phive.phar.asc -o phive.phar.asc && gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x9D8A98B29B2D5D79 && gpg --verify phive.phar.asc phive.phar && chmod +x phive.phar && mv phive.phar /usr/local/bin/phive && rm phive.phar.asc && phive --no-progress install --global --trust-gpg-keys C00543248C87FB13 composer-normalize
#25 183.4 curl: (35) Recv failure: Connection reset by peer
The Dockerfile instruction:
# Install PHIVE and some PHP tools.
RUN curl -sSL https://phar.io/releases/phive.phar -o phive.phar \
&& curl -sSL https://phar.io/releases/phive.phar.asc -o phive.phar.asc \
&& gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x9D8A98B29B2D5D79 \
&& gpg --verify phive.phar.asc phive.phar \
&& chmod +x phive.phar \
&& mv phive.phar /usr/local/bin/phive \
&& rm phive.phar.asc \
# Install latest version of Composer Normalize. Can not be installed with
# project sources because of conflict with drupal-paranoia.
&& phive --no-progress install --global --trust-gpg-keys C00543248C87FB13 composer-normalize
It is using the installation instruction from https://phar.io/.
I have tested locally to build the docker image from the same Dockerfile, locally it is OK.
So I guess it is a network configuration change which happened which now refuses curl from Gitlab.com CI to https://phar.io.
To workaround this change, I tried to target Github releases packages like https://github.com/phar-io/phive/releases/tag/0.16.0, but how it is possible to have a stable URL to get the latest release?
Or should I get a fixed release and then add in the build instruction a phive self update?
Thanks for any help.
Since 2026/06/02, I have some Gitlab CI pipelines which build my docker images in error. Example: https://gitlab.com/florenttorregrosa-docker/images/docker-ci-php/-/jobs/14649757540
The last time it was ok was on 2026/05/02. Example: https://gitlab.com/florenttorregrosa-docker/images/docker-ci-php/-/jobs/14184735120
The error message is:
The Dockerfile instruction:
It is using the installation instruction from https://phar.io/.
I have tested locally to build the docker image from the same Dockerfile, locally it is OK.
So I guess it is a network configuration change which happened which now refuses curl from Gitlab.com CI to https://phar.io.
To workaround this change, I tried to target Github releases packages like https://github.com/phar-io/phive/releases/tag/0.16.0, but how it is possible to have a stable URL to get the latest release?
Or should I get a fixed release and then add in the build instruction a phive self update?
Thanks for any help.