-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Adjust packages and extensions in order to run on PHP 8.0 #51
Conversation
@giannicic But updating the Docker file is also good. |
Signed-off-by: Gianni Ciccarelli <[email protected]>
Ah ok, sorry. I haven't seen that composer works with --ignore-platform-req=php. I was following the instructions here https://api-tools.getlaminas.org/ and on PHP8 it gives the same errors reported in #44 |
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.
🚢 thanks @giannicic!
&& a2enmod rewrite \ | ||
&& sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf \ | ||
&& mv /var/www/html /var/www/public \ | ||
&& curl -sS https://getcomposer.org/installer \ | ||
| php -- --install-dir=/usr/local/bin --filename=composer \ | ||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ |
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.
Not important, but we should probably use multi-stage here, pinning composer
to a specific version:
FROM composer:2.3.3 AS get-composer
FROM php:8.0-apache
COPY --from=get-composer /usr/local/bin/composer /usr/local/bin/composer
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.
Ok, I'll try it and create a PR then
Description
I've seen that the project skeleton can't run on PHP-8.0 as reported here #44
Since I also have the need to run a new project on PHP-8.0 I've adjusted the composer packages and Dockerfile in order to run on that version.
Hope you find it usefull