timflutre / PlantBreedGame

A serious game to teach plant selective breeding.
https://sourcesup.renater.fr/plantbreedgame/
GNU Affero General Public License v3.0
8 stars 2 forks source link

`docker run` raises "platform" related warning on ARM-based CPU #36

Open juliendiot42 opened 4 months ago

juliendiot42 commented 4 months ago

A user on Mac OS with M chip reported a warning message after running the docker run command:

(base) <user>@<host> PlantBreedGame % docker run -d --rm --name plantbreedgame -p 80:3838 juliendiot/plantbreedgame
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no > specific platform was requested
7220f0e005ed493bf16c04f7a5b79388f937a0b82e48dc96999f86750ef97ae2

This do not seems to be blocking as this user reported the game can still run.

juliendiot42 commented 4 months ago

I didn't dig much but this is probably related to how the docker image is build.

Currently I build the docker image "by hand" and I indeed do not specify any --platform.

I am planning to change the flow to build (and deploy) the images from the CI directly and this issue can be handle at this moment.
I would like to do that with nix (like I do for https://github.com/ut-biomet/PlantBreedGame-HelperApp) but I should first create a proper nix package.

Since this do not seems to be blocking it can wait.

juliendiot42 commented 2 months ago

The image building system have been switched from docker to nix. I don't know if this trouble is still there (probably).