thecodingmachine / docker-images-php

A set of PHP Docker images
MIT License
785 stars 138 forks source link

ARM Build for Apple Silicon compatibility #299

Closed andersonpem closed 2 years ago

andersonpem commented 2 years ago

I've been using your project for a while now. I really like the simplicity and efficiency of it.

I'm trying to use the thecodingmachine/php:7.2-v4-apache-node12 on a M1 (ARM) Mac. It seems something is not built for ARM in the images.

Expected Behavior

Pull to be successful

Current Behavior

docker pull thecodingmachine/php:7.2-v4-apache-node12

Pull throws: no matching manifest for linux/arm64/v8 in the manifest list entries

Possible Solution

Check which part of the image has not an ARM candidate and fix it. I can do that if given proper direction. I have some ability with Docker.

Your Environment

andersonpem commented 2 years ago

I found a temporary fix until there's an ARM build: https://onexlab-io.medium.com/apple-m1-chip-no-matching-manifest-for-linux-arm64-v8-docker-mysql-5142060a9309

andersonpem commented 2 years ago

I think that actually the MySQL was the one to blame on this.

andersonpem commented 2 years ago

Yup. I confirmed it. The image works like a charm.