pretalx-docker icon indicating copy to clipboard operation
pretalx-docker copied to clipboard

Specify stricter database version

Open martinheidegger opened this issue 5 years ago • 4 comments

Currently the mysql database version is 5 which when resolved to 5.0 is certainly too low (it resolves to 5.7.30 at the time of writing). It would probably better to be stricter with the database version (maybe 5.7? or even with a patch version?) as it would reduce the amount possible bugs.

martinheidegger avatar Jul 08 '20 14:07 martinheidegger

There was actually an opposite change made since this ticket was reported - https://github.com/pretalx/pretalx-docker/commit/70ba5424bc043128124f5d637f4b0952f4155a3e set the database container to be used to mysql:latest.

MikkCZ avatar Mar 21 '23 13:03 MikkCZ

Personally, I agree that the version should be stricter, if possible. At the same time, the Pretalx documentation says

We recommend using PostgreSQL. pretalx also works (and runs tests against) MariaDB and SQLite.

So it might be actually more appropriate to configure Postgres instead.

MikkCZ avatar Mar 21 '23 13:03 MikkCZ

I have no opinion on this, and am happy to follow whatever people interested in using this dockerfile want – though it would seem to me that changing databases at this point would be a major step for people using this repo, and migrating from one to the other is nontrivial.

rixx avatar Mar 22 '23 22:03 rixx

I agree that following the upstream convention seems appropriate for a downstream project. If people need a derivation, they can always go down that path in our magnificient FLOSS land.

Did I understand this correctly: Changing the database (in the main compose.yaml manifest) for people using this repo being a major step implies that people update their local environments usually with git pull and docker compose up -d?

While the migration is not trivial, we can certainly provide different examples through well-documented compose.{postgres,mariadb,mysql}.yaml manifests.

For me this discussion correlates strongly with the observations and argument in https://github.com/pretalx/pretalx-docker/issues/62#issuecomment-2080227898 : with adopting more conventional patterns of handling a dockerized Django application, we can reduce the ambiguity for end users of this repository.

The migration path from MySQL to PostgreSQL could be transparent, when this initiative comes to terms:

The Future of MySQL is Postgres

Simplifying Migrations by Reimagining MySQL as a PostgreSQL Extension

Jonah Harris, Postgres Conference, 2024-04-19

almereyda avatar Apr 26 '24 23:04 almereyda

Update: pretalx now requires postgreSQL or SQLite.

rixx avatar Oct 28 '24 23:10 rixx

The legacy file should probably reflect that:

https://github.com/pretalx/pretalx-docker/blob/8cab436aa1664bcd2d4543fcd56309979df0a21c/docker-compose.yml#L25

But also considering the rework → https://github.com/pretalx/pretalx-docker/pull/64 (cc. @almereyda) it may be good to be a bit more specific with the working postgres version (15 is quite broad still, though if postgres follows semver it should be fine)

martinheidegger avatar Oct 29 '24 14:10 martinheidegger

PostgreSQL does not follow SemVer.

Just as a heads-up, my current impression is that this repo is in a permanently uncared-for / neigh-unusable state. If this doesn’t change by the end of the year, or at least looks like it’s likely to change by then, I’ll probably archive it. The whole “community maintained” is not really working out and leads to confusion and frustration when people come here under the impression they’ll be able to "just" run pretalx with docker, and then things don’t work or break.

rixx avatar Oct 29 '24 14:10 rixx

Switched the docker-compose to PostgreSQL.

saschafoerster avatar May 16 '25 09:05 saschafoerster