forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tests] php install failure (Docker) (aces#8239)
Fix Docker image when run locally GitHub Actions replaces the PHP version in the docker image, but the default version is too old to run LORIS when not replaced by GitHub Actions. This upgrades the default version so that tests can be run locally without modifying the Docker image.
- Loading branch information
Showing
4 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
FROM php:8.0 | ||
FROM php:8.1 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y mariadb-client libzip-dev | ||
|
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM php:8.1 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y mariadb-client libzip-dev | ||
|
||
RUN yes | pecl install xdebug-3.1.0 | ||
RUN echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini | ||
RUN echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/xdebug.ini | ||
RUN echo "xdebug.start_with_request=yes" >> /usr/local/etc/php/conf.d/xdebug.ini | ||
|
||
# Install extensions through the scripts the container provides | ||
RUN apt-get install -y libzip-dev zip && \ | ||
docker-php-ext-install pdo_mysql zip |
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