Fix du build Docker MySQL sur les architectures ARM64#2165
Open
BySplashGm wants to merge 2 commits intoafup:masterfrom
Open
Fix du build Docker MySQL sur les architectures ARM64#2165BySplashGm wants to merge 2 commits intoafup:masterfrom
BySplashGm wants to merge 2 commits intoafup:masterfrom
Conversation
L'image mysql:5.7 n'existe pas pour ARM64 (Apple Silicon, etc.). Ajout de --platform=linux/amd64 pour forcer l'émulation amd64, sans impact sur les machines x86_64.
Contributor
|
Salut @BySplashGm, Peut être que tu peux adapter la doc dans ce cas |
Contributor
|
Testé sur mac et ça fonctionne. @agallou t'es sur linux toi je crois ? Tu pourras tester voir si c'est bon ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problème
L'image
mysql:5.7n'a pas de version ARM64 officielle, ce qui provoque une erreur lors dumake docker-upsur les machines Apple Silicon (et autres processeurs ARM64) :Solution
Ajout de
--platform=linux/amd64dans les Dockerfilesmysqletmysqltestpour forcer l'émulation amd64 via Rosetta/QEMU.Ce changement est transparent sur les machines x86_64 (no-op).
La documentation dans
doc/dev-setup.mdmentionne déjà un contournement manuel viacompose.override.yml, cette PR le rend automatique sans impacter les autres architectures.