-
Notifications
You must be signed in to change notification settings - Fork 9
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
ci: 👷 changed to building imagick from source #2428
Open
marvinroman
wants to merge
5
commits into
dev
Choose a base branch
from
2425-error-on-docker-build-on-the-pecl-build-of-imagick-library
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f2a8fce
ci: :construction_worker: changed to building imagick from source
marvinroman 2383d1d
docs: :memo: updated docker comments
marvinroman c112d1d
docs: :memo: added reference to issue in comments
marvinroman e5adff5
docs: added TODOs for the removal of items
marvinroman 76088ff
docs: :memo: updated issue referenced in todo comments
marvinroman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
FROM php:8.4-fpm | ||
|
||
ENV PHP_VERSION 8.4 | ||
# TODO - IMAGICK_VERSION can be removed once pecl fixes issues installing with php8.4 | ||
ENV IMAGICK_VERSION 3.7.0 # This should be bumped to the latest version, especially when PHP version is bumped and can be removed when https://github.com/accessibility-exchange/platform/issues/2425 is resolved | ||
ENV NODE_VERSION 22.11.0 | ||
ENV NVM_VERSION 0.40.1 | ||
ENV NVM_DIR /var/www/.nvm | ||
|
@@ -36,9 +38,31 @@ RUN apt-get install -y \ | |
RUN docker-php-ext-configure gd --with-freetype --with-jpeg | ||
RUN docker-php-ext-install -j$(nproc) gd pdo_mysql mbstring exif pcntl bcmath bz2 zip soap intl opcache | ||
|
||
RUN apt-get install -y libmagickwand-dev --no-install-recommends | ||
RUN apt-get install -y \ | ||
libmagickwand-dev \ | ||
libmagickcore-dev \ | ||
--no-install-recommends | ||
|
||
RUN pecl install imagick | ||
# START BUILDING IMAGICK FROM SOURCE - this can be removed once pecl fixes issues installing with php8.4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please leave a link to #2425 in the comments. It'll just make it easier to understand when scanning the code later. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added |
||
# see issue https://github.com/accessibility-exchange/platform/issues/2425 | ||
# TODO - this can be removed once pecl fixes issues installing with php8.4 | ||
RUN apt-get install -y \ | ||
$PHPIZE_DEPS \ | ||
libtool | ||
|
||
RUN mkdir -p /tmp/imagick | ||
WORKDIR /tmp/imagick | ||
RUN curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/tags/${IMAGICK_VERSION}.tar.gz | ||
RUN tar --strip-components=1 -xf /tmp/imagick.tar.gz | ||
RUN phpize | ||
RUN ./configure | ||
RUN make | ||
RUN make install | ||
WORKDIR / | ||
RUN rm -rf /tmp/imagick | ||
# END BUILDING IMAGICK FROM SOURCE | ||
|
||
# RUN pecl install imagick | ||
RUN docker-php-ext-enable imagick | ||
|
||
RUN printf "\n" | pecl install apcu | ||
|
@@ -48,6 +72,11 @@ RUN pecl install -o -f redis && \ | |
rm -rf /tmp/pear && \ | ||
docker-php-ext-enable redis | ||
|
||
# TODO - this can be removed once pecl fixes issues installing with php8.4 | ||
RUN apt-get remove -y \ | ||
$PHPIZE_DEPS \ | ||
libtool | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
|
||
RUN mkdir -p $NVM_DIR | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this link is a bit odd because this PR will close that issue. Maybe reword a bit here so that it indicates that 2425 is what this work around is for an can be removed when the upstream issue in imagick is resolved (and link to an imagick issue).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed all the TODO comments to reference issue Imagick/imagick#698.