-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Specific PHP version tagging #112
Comments
At least supporting 8.1 would be awesome. Minimum PHP version of 8.2 breaks PECL support during build: |
This is pretty normal for xdebug when a new version of PHP comes out. There is usually a compatible release within a few weeks of the PHP release. FWIW, if you use |
@withinboredom Thanks for the added context. Now I'm good to go 🎉 That script you just linked to is a much better alternative than what the official PHP Dockerhub docs use. |
You can also specify a version or Branch when using extension Installer for example : install-php-extensions xdebug-beta |
I've been thinking about this problem for a bit and we've seen a couple of PR's try to tackle it. Right now, things are "simple" because there is only one PHP version to support, but things are possibly going to get complicated once 8.2.1, 8.2.2, 8.2.4, etc start getting released. The complication won't necessarily arise from PHP itself, but rather if there need to be changes to support a specific version. It might be simplest to just manage a set of release branches. When 8.2.0 is released next week, we can create a branch in git:
Once 8.2.1 comes out, we update CI again so that 8.2.0 only builds This gives us a few benefits:
Downsides:
Thoughts? |
Yo limit the maintenance burden, I suggest:
The main benefits is that we'll have only one branch to maintain and everything can be automated. WDYT? |
I agree that single-branch is going to be easier (although that's not based on any internals knowledge) If you continually publish each patch version you can just leave the old docker tags in-place as the project moves forwards |
To add to @withinboredom comment around the versioning. Are we just thinking about PHP updates as well or will we also be including alpine updates as well since there is a big difference between alpine 3.16 and 3.17 for example so just having alpine could end up forcing people into downloading newer versions that could break their build? So if versioning is being introduced the support for |
I somewhat touched the issue in #133 In bake definition file minor versions are easy to handle and distros also if wanna do different kind of tags for images. Problem is patch versions like 8.2.1 etc. In our internal repo we use a script to find out current patch version from Alpine repos and then form this kind of command:
and
and they are used in tagging:
|
Closed by #163. |
It's unclear from the docker tags which PHP version I would be getting.
I think for adoption it'd be good to be specific about this, even if you only want to be building 8.2, make an
:php-8.2
tag so that when you update to8.3
people can stick on the older versionThe text was updated successfully, but these errors were encountered: