pestphp / pest

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
https://pestphp.com
MIT License
9.48k stars 343 forks source link

fix: build failing to run #1075

Closed luismgsantos closed 8 months ago

luismgsantos commented 8 months ago

What:

Description:

Only made changes in the dockerfile. Running make build ARGS="--build-arg PHP=8.2" would result in an error that made it impossible to run the docker compose build.

 => ERROR [php stage-0 2/9] RUN apk update && apk add     zip libzip-dev icu-dev git RUN docker-php-ex  0.9s
------
 > [php stage-0 2/9] RUN apk update && apk add     zip libzip-dev icu-dev git RUN docker-php-ext-configure zip intl:
0.127 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz
0.251 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/aarch64/APKINDEX.tar.gz
0.576 v3.19.0-341-gfaf9f17e39b [https://dl-cdn.alpinelinux.org/alpine/v3.19/main]
0.576 v3.19.0-347-g603bc9299c4 [https://dl-cdn.alpinelinux.org/alpine/v3.19/community]
0.576 OK: 22843 distinct packages available
0.829 ERROR: unable to select packages:
0.829   docker-php-ext-configure (no such package):
0.829     required by: world[docker-php-ext-configure]
0.829   intl (no such package):
0.829     required by: world[intl]
0.829   RUN (no such package):
0.829     required by: world[RUN]
------
failed to solve: process "/bin/sh -c apk update && apk add     zip libzip-dev icu-dev git RUN docker-php-ext-configure zip intl" did not complete successfully: exit code: 3
make: *** [build] Error 17
image

After these changes running the command make build ARGS="--build-arg PHP=8.2" builds the image successfully 👍