Skip to content

Fix docker-compose: upgrade MySQL 5.7 to 8.0#3937

Open
Chocapikk wants to merge 1 commit intoallegro:ngfrom
Chocapikk:fix/docker-compose-mysql-version
Open

Fix docker-compose: upgrade MySQL 5.7 to 8.0#3937
Chocapikk wants to merge 1 commit intoallegro:ngfrom
Chocapikk:fix/docker-compose-mysql-version

Conversation

@Chocapikk
Copy link
Copy Markdown

Summary

The allegro/ralph:latest Docker image ships Django 4.2+ which requires MySQL 8 or later. The current docker-compose.yml pins mysql:5.7, causing ralphctl migrate to fail immediately on a fresh deployment:

django.db.utils.NotSupportedError: MySQL 8 or later is required (found 5.7.44).

This upgrades the MySQL image from 5.7 to 8.0.

Reproduction

cd docker
docker compose up -d
docker compose exec web ralphctl migrate
# -> NotSupportedError: MySQL 8 or later is required (found 5.7.44).

The `allegro/ralph:latest` image ships Django 4.2+ which requires
MySQL 8 or later. Running `ralphctl migrate` against MySQL 5.7
fails with:

    django.db.utils.NotSupportedError: MySQL 8 or later is required (found 5.7.44).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant