-
Notifications
You must be signed in to change notification settings - Fork 27
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
Latest update broke composer? #85
Comments
I think there are now some other issues as well... I see crontab is working, but now I am seeing this in the logs:
I do use set some PHP_ env variables in the Dockerfile, and I do see that the values I set for them are correct when running I no longer see the zz-generated-settings.conf file in either of the PHP config folders (php/conf.d/ and php-fpm.d/) NOTE: I rebuilt the container (no changes) and the "zz-generated-settings" files showed up this time, but the errors/warnings persist. |
I’m very sorry for the issues you are experiencing. I will check the information you have provided and fix it soon, but could you let me know which Docker images you are using? |
7.4-fpm-apache Also, cron is giving me these errors every time it runs in syslogd/errors/current:
This is my Dockerfile as of now:
Today I added the DISABLE_AUTORUN_COMPOSER_INSTALL and ALLOW_RUNTIME_PHP_ENVVARS to overcome some of the issues I was having. I now run "composer install" in my startup script (00-init). When we pass in ENABLE_CRONTAB argument with 1, the crontab does get setup, as mentioned above. But it now gives the errors mentioned. But yeah this is causing all kinds of issues for us today. I really wish there was a way to ensure new versions don't automatically break our deployments with versioning of some sort. |
So it looks like |
Thank you very much for the in-depth investigations. I apologize for the recent typo I made in In the meantime, please try using other tags from the repo below to access previous builds of the I hope this will help you get a stable build for production. |
No worries. Stuff happens. So just for clarity, are there 2 issues to resolve?
I am guessing (2) will fix other related issues other than cron, like the PHP vars not being properly set? I guess my use of -- And thanks for the tag info - I was not aware you had implemented that. It is very helpful - although then I will have to keep an closer eye out for bug fixes and such. :) It would be pretty cool if there was somehow a more "stable" release channel, or major versions, etc... Like I noticed the last "tagged" release was 5.0.3 back on March 12, which confused me a bit at first, because it made me think there were no changes and something else had went wrong. Then I checked in Docker Hub and saw the release several hours earlier. |
Based on my current understanding, I believe the typo in When running commands in the Dockerfile, since this file and other PHP dynamic config files are not yet created, PHP and other programs will essentially load the default settings. Therefore, fixing item number 2 might not resolve the composer error when it fails to run in the Dockerfile during your container builds (I need more error logs for deeper investigation). However, I believe that correcting the typo in |
The release versions on this GitHub repository don't guarantee that Docker images built from the same source code will always be identical. This is because my Docker images are built on PHP base images, meaning that PHP binaries, Debian/Alpine packages, Composer versions, etc. can change with each build. I've mentioned that I build my Docker images daily to include the latest security patches and software updates. https://github.com/shinsenter/php/blob/5.x/README.md#stable-image-tags
This means building your containers using any tags on the main Docker Hub repository might suddenly stop working one day. This issue is similar to using any other Docker image with the "latest" tag. To mitigate this, I've created separate archives for my Docker images based on their build date. You can consider the images on the main Docker Hub repository always "beta". But above all, I haven't found a more optimal and user-friendly solution yet. If you have any good ideas, please let me know so we can discuss them further. |
@mlantz7 Could you please help me check again to see if your issue has been resolved? |
So the locale file is now correct and is working fine. However, "composer install" still does not happen. |
@mlantz7 |
Sorry, maybe the issue is unclear. I can run The issue is that it used to run on its own automatically (before I added the Hopefully that makes things more clear. |
Sorry to keep you waiting, but can I ask you to test composer install again with the latest docker images? I hope this can solve your problem. |
I will close this issue due to no updates. If you have any other concerns, please feel free to create a new issue. |
Hi there,
It seems something changed over the weekend that broke the package. It appears that "composer install" no longer runs automatically in the container, which broke our deployment process.
Any idea?
The text was updated successfully, but these errors were encountered: