jorge07 / alpine-php

Multi Arch Alpine PHP Docker images. 5.6, 7{0,1,2,3,4}, 8.{1,2,3}
https://hub.docker.com/r/jorge07/alpine-php/
Apache License 2.0
129 stars 54 forks source link

Support ARM platform #55

Closed andig closed 1 year ago

andig commented 5 years ago

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

jorge07 commented 5 years ago

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

andig commented 5 years ago

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

jorge07 commented 5 years ago

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

andig commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

jorge07 commented 5 years ago

I think will need to compile.

andig commented 5 years ago

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

jorge07 commented 2 years ago

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

jorge07 commented 2 years ago

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

m0sviatoslav commented 1 year ago

@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 :)

jorge07 commented 1 year ago

well it's in master

jorge07 commented 1 year ago

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