UDOIT icon indicating copy to clipboard operation
UDOIT copied to clipboard

Remove db platform from docker-compose.yml

Open jonespm opened this issue 3 years ago • 6 comments

The platform option in the docker-compose.yml is unnecessary and doesn't work when running under an M1 arm Mac. That line can just be removed.

https://github.com/ucfopen/UDOIT/blob/ff9d7cd76128a2df339351e5268e53bd71b0a25e/docker-compose.nginx.yml#L6

jonespm avatar Oct 06 '22 20:10 jonespm

The platform: linux/amd64 makes it work on M1 Macs if you have Rosetta2 installed.

ssilverm avatar Oct 06 '22 20:10 ssilverm

I believe I have rosetta

When I run docker compose -f docker-compose.nginx.yml up it says

Error response from daemon: image with reference mysql:latest was found but does not match the specified platform: wanted linux/amd64, actual: linux/arm64/v8

Perhaps because I already have a project that uses the linux/arm64/v8 mysql? I could clean my images I guess but we've got so many docker-compose files that use mysql.

jonespm avatar Oct 06 '22 20:10 jonespm

Oh wow, they did officially release an ARM64 docker image for mysql. I never thought it would happen. If that's the case then that line can be removed.

ssilverm avatar Oct 06 '22 20:10 ssilverm

Yeah, ever since the 8.0.29 tag 3 months ago I guess. Feels like it was longer.

image

jonespm avatar Oct 06 '22 20:10 jonespm

@jonespm Feel free to submit this as a PR. It would qualify for Hacktoberfest if you're participating in it.

bagofarms avatar Oct 06 '22 22:10 bagofarms

Okay, easy enough. I forgot it was that time of year already. Thanks @bagofarms.

jonespm avatar Oct 06 '22 22:10 jonespm