-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Create alpine version of docker images. #153
Comments
See https://github.com/yiisoft/yii2-docker#faq If you can come up with a PR where all (basic) framework tests pass we might reconsider it. We had very esoteric issues with timezone, AFAIR. Related: |
Okay, I can give it a try. Any specific package Yii depends on for timezones? |
php-intl was a problem, see also #25 |
php-min works, but then you get:
|
@ferronsw Did you recreate the Alpine flavor on a fork of yours? Where can I find it?
|
Yes, you can find it here: https://github.com/ferronsw/yii2-docker |
There is no Alpine-Apache image for PHP, AFAIK. You need to move ahead with fpm-nginx I think. |
I've installed apache in the alpine php container myself. But this doesn't explain the problem right? |
The error occurs because Alpine does not have You can try working based on: https://github.com/yiisoft/yii2-docker/tree/feature/alpine-2022 - with But beware, there are many failing tests:
|
Thx! Any reason why composer is commented in the example file? I get these warnings in both PHP 7.4 and 8.1:
|
Was also due to missing |
FYI - even with
test results are the same :( |
Because I still can't run the tests myself. Because of the error when running |
@schmunk42 Can you help me why I can't run the tests?
|
Try adding See also: |
Thanks, that works :) The strange thing is everyone says adding |
Yeah, I recall that you had to recompile or patch some libs for Alpine. See also #25 |
musl - current statehttps://wiki.musl-libc.org/open-issues |
Alpine images aren't that great because of musl. Quite significant performance drop compared to glibc. Up to 30%. |
Would it be possible to create an alpine variant of all/most container images?
The default php apache 8.1 uses debian an has many high and critical vulnerabilities.
I've also scanned the php 8.1 alpine image and that one doesn't have any vulnerabilities.
Trivy (vulnerability scanner) output for the default php:8.1-apache image tag.
if you download this html you get easier readable view.
It are so many that the list is too long for this comment, so I put it in a file in a repo.
The text was updated successfully, but these errors were encountered: