Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build failing to run #1075

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

luismgsantos
Copy link
Contributor

What:

  • Bug Fix
  • New Feature

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
  • Removed an unnecessary character, that was breaking the build.
  • Also removed the docker-php-ext-configure and docker-php-ext-enable commands on the file because according to this issue docker-php-ext-configure should only be used when configuring extension before docker-php-ext-install and this command automatically runs docker-php-ext-enable after building the extension.
  • Lastly, installed autoconf and build-base because of the error below.
image

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

@nunomaduro nunomaduro merged commit 62d8459 into pestphp:2.x Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants