Developing web applications running in rails+mysql environment
My PC is an m1 chip macbook, but the mysql container doesn't stand up, so I checked the cause and found out that if you want to use mysql image on an m1 mac, you can use it
platform:linux/x86_64
I was told that I had to add the description to docker-compose.yml.
So by adding platform:linux/x86_64
to docker-compose.yml, the environment started
[Correction]
services:
db:
image —mysql 5.7
platform:linux/x86_64# Added this line
The environment has started up here, but if I push it to the remote repository, I'm afraid the image build of workers who don't use the m1 mac will fail, and I'm currently working without pushing docker-compose.yml, so I think this situation is not very good.
How should I build an environment if I only have the necessary settings in docker-compose.yml or Dockerfile for workers using m1 mac?
mysql docker docker-compose
The designation platform:linux/x86_64
rather means that x86_64 can be emulated on an arm64 environment, so it can be run on x86_64 and should be run on an Intel Mac in an x86_64 environment...
I can't try it because I don't have the environment at hand, but it seems that other workers with Intel Macs can try it quickly.
884 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
572 Understanding How to Configure Google API Key
566 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
596 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.