alpine-php icon indicating copy to clipboard operation
alpine-php copied to clipboard

Support ARM platform

Open andig opened this issue 5 years ago • 11 comments

Multi-arch images with support for ARM platform would be great. Seems base alpine is already capable of doing this?

andig avatar Mar 16 '19 18:03 andig

It's in the plan. Also add multi stage builds. I'll try to get this done during next week. Also xdebug 2.70 was released so 7.3 should be bug free

jorge07 avatar Mar 17 '19 00:03 jorge07

ping @jorge07 any progress on this one? Would be happy to help, if only by testing.

andig avatar Apr 11 '19 10:04 andig

@andig not yet. I'll try to find some time this weekend ;)

jorge07 avatar Apr 15 '19 13:04 jorge07

I‘m still hugely interested in this but confused how to move this forward. I understand the alpine image aleady supports multiarch. If the package repo does the same we might already be set? What I don‘t get though is how to specify the desired architecture during build in order to bundle them up again inside a docker manifest (if thats the process)?

andig avatar Apr 25 '19 08:04 andig

Answering myself here. https://stackoverflow.com/questions/51400625/build-and-push-a-multi-arch-docker-image explains how to extract arch-specific tags from base multi arch image. I‘ll see how far that approach would get me.

andig avatar Apr 25 '19 08:04 andig

Ok. I got the basics right, however the cast repo does unfortunately not contain binaries for other architectures:

fetch https://php.codecasts.rocks/v3.8/php-7.3/aarch64/APKINDEX.tar.gz
ERROR: https://php.codecasts.rocks/v3.8/php-7.3: No such file or directory
WARNING: Ignoring APKINDEX.f7859436.tar.gz: No such file or directory
WARNING: The repository tag for world dependency 'php@cast' does not exist
...

Any thoughts were to get multi-arch binaries?

andig avatar Apr 25 '19 09:04 andig

Ping @jorge07 if you have any hint where/how to get packages for target architectures I could take this further.

andig avatar May 02 '19 08:05 andig

I think will need to compile.

jorge07 avatar May 04 '19 17:05 jorge07

I've added an issue upstream at https://github.com/codecasts/php-alpine/issues/79

andig avatar May 29 '19 09:05 andig

We no longer depend on codecast so this thing is unlocked.

jorge07 avatar Dec 29 '21 13:12 jorge07

Initial work is done. Will aggregate the manifests to the pipeline and that should do it

jorge07 avatar Dec 29 '21 22:12 jorge07

@jorge07 Hi, do you still working on adding support for ARM? It's been a year since the last comment, and I wonder if it has a chance to be done :)

m0sviatoslav avatar Dec 06 '22 22:12 m0sviatoslav

well it's in master

jorge07 avatar Jan 16 '23 15:01 jorge07

Feedback appreciated: https://hub.docker.com/layers/jorge07/alpine-php/8.1/images/sha256-c42c43d0533af132410837446f55d81670fde91a17ef794915fe6b031f4f72cb?context=repo

jorge07 avatar Jan 16 '23 15:01 jorge07