-
Notifications
You must be signed in to change notification settings - Fork 93
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
Update Dockerfile to support PHP 8 #1272
base: skosmos-2
Are you sure you want to change the base?
Conversation
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## master #1272 +/- ##
=========================================
Coverage 70.68% 70.68%
Complexity 1646 1646
=========================================
Files 32 32
Lines 3786 3786
=========================================
Hits 2676 2676
Misses 1110 1110 Continue to review full report at Codecov.
|
Thanks for the PR! Now that I see the changes, I'm not sure this is the best way to support PHP 8. Basically this is taking an Ubuntu 20.04 base image (which by default has PHP 7.4 packages), then activating the
Do you have any specifics on this - what base image alternatives are there? We could also wait for Ubuntu 22.04, which is due in a month from now. But it will have PHP 8.1, which is not yet supported in Skosmos although we have a related open issues #1274 and #1291. |
We could probably use some small image like Nonetheless, we could use the PHP official images, with the extra things required for Skosmos, instead of using Ubuntu as base image. The Docker file would be smaller, and I think it would be easier to upgrade to newer versions of PHP, as long as there was a tag in the official PHP image. From what I recall, I did not use the PHP images because I used our installation instructions as reference, and wanted to stay as close as possible to that documentation (although my memory often fails me, but I think that's the reason for using Ubuntu.)
This sounds like an easy fix, unless we have the need to upgrade the Docker files immediately. I think I only created this PR because I had it from some tests for Skosmos + PHP 8 after you fixed the build for this newer version of PHP. Thanks @osma! Bruno |
Kudos, SonarCloud Quality Gate passed! |
Reasons for creating this PR
Support PHP 8 when using the test Docker image.
Link to relevant issue(s), if any
Description of the changes in this PR
Used the same Dockerfile changes I used to test the linked pull request.
Known problems or uncertainties in this PR
There are existing images that support PHP 8 and produce smaller containers, but I think it would be better to move that work for another issue.
Checklist