tobybatch / kimai2

Docker containers for the kimai2 web application including docker-compose and kubernetes/helm deployment.
MIT License
183 stars 96 forks source link

[BUG] DATABASE URL inconsistencies #545

Closed kevinpapst closed 6 months ago

kevinpapst commented 10 months ago

With the recent change, that ?charset=utf8&serverVersion=5.7 is required in the DATABASE_URL we now have some issues.

I can work on PRs, especially the first one, but I need some input for the ones regarding the tests and test-image @tobybatch .

hexxone commented 10 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!

kevinpapst commented 10 months ago

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 👍