Closed kevinpapst closed 6 months ago
Hey there, I have another question.
In the README, you are providing the "serverVersion" of "5.7".
However, you are also using "mysql:latest" TAG.
And if I am correct, the "latest" mysql Docker Version is already at something like > 8.0.X
.
Should these versions correlate? And if so, should the "DATABASE_URL" Version be incremented, or the mysql Version be "statically" set instead?
Also, it would be nice to have these "breaking changes" in the Release section of kimai, because I had to manually search and figure out this is now a thing.... ^^
Thanks in advance!
mysql:latest is only used in the traefik image, which is not maintained by tobybatch. So 5.7 should be correct for the normal docker images (I don't even know what Traefik is). But I agree that should be at least discussed, so I added it to the todo list.
Downgrading a database isn't really possible, so going back to 5 is obviously no option. Using "latest" is probably also not the best idea for prod images. So I would suggest that we find out the exact version from mysql:latest and use that in all docker images as static version eg mysql:8.
and figure out this is now a thing
This was always a thing. But nobody read the .env template properly in the last years.
it would be nice to have these "breaking changes" in the Release section of kima
Totally agree. Mainly my fault. The examples in the documentation were all super old and missing the charset=utf8mb5&serverVersion=5.7
examples. So I updated all documentations (not docker, only Kimai itself!) and the UPGRADING guide will contain the breaking change soon.
Thanks for sharing your findings @hexxone 👍
With the recent change, that
?charset=utf8&serverVersion=5.7
is required in theDATABASE_URL
we now have some issues.The single env vars do not supply those right now, we need to add
DB_CHARSET
andDB_VERSION
in multiple files, e.g. here:ServerVersion and Charset are missing:
Different database version used in regular vs traefik images (mysql:5 vs mysql:latest)
I can work on PRs, especially the first one, but I need some input for the ones regarding the tests and test-image @tobybatch .