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

Arm64/v8 Images

Open samkhawase opened this issue 3 years ago • 11 comments

Hi,

Thanks a lot for creating the slim alpine images for Docker. Would it be possible for you to add support for Arm64/v8 arch? I've an Apple Silicon M1 macbook and other images don't work on it.

I tried forking this repo, but didn't go far as there are a lot of changes required with credentials etc.

We could leverage the platforms argument of the Docker buildx action?

 - name: Build Android Base JDK${{ matrix.jdk }}
   uses: docker/build-push-action@v2
   with:
     context: ./docker
     file: ./docker/base.Dockerfile
     push: true
     tags: ${{ steps.docker_meta.outputs.tags }}
     build-args: |
       JDK_VERSION=${{ matrix.jdk }}
     # Limit to platforms supported by base image
     platforms: |
       linux/arm64/v8

Here is a PR the has the relevant build .yml file that builds for arm64/v8 arch: https://github.com/docker/setup-buildx-action/issues/54

samkhawase avatar Mar 04 '21 18:03 samkhawase

Hi @samkhawase,

right now arm64 is not supported in Alpine AdoptOpenJDK images (AdoptOpenJDK/openjdk-docker#519) nor Amazon Corretto (corretto/corretto-docker#46) so is not possible to do right now, maybe in a future.

alvr avatar Mar 05 '21 19:03 alvr

Ok, thanks. I'll keep an eye on the ticket on the AdoptOpenJDK board.

samkhawase avatar Mar 16 '21 10:03 samkhawase

Is there any update on this ?

rizrmd avatar Jul 22 '21 14:07 rizrmd

@samkhawase @rizkyramadhan I'm going to create tomorrow a test image using Liberica JDK instead of AdoptOpenJDK/Corretto because it seems that it will take a long time. I will let you know when it is ready.

alvr avatar Jul 22 '21 17:07 alvr

Is not possible yet to generate arm64 images. build-tools package installs emulator package and is not yet available for arm64. It seems that it will be with the release of Artic Fox.

alvr avatar Jul 25 '21 14:07 alvr

Any update about it?

pjq avatar Aug 03 '22 06:08 pjq

Any updates on this issue? I'm also interested in using this image to build on mac M1

inekrasov-intermedia avatar Mar 16 '23 15:03 inekrasov-intermedia

The bellsoft/liberica-openjdk-alpine have arm64/v8 support now.

https://hub.docker.com/r/bellsoft/liberica-openjdk-alpine/tags

edwnmrtnz avatar Apr 10 '23 04:04 edwnmrtnz

Any updates?

wafer-li avatar Aug 17 '23 09:08 wafer-li

Following up for updates

raquezha avatar Feb 12 '24 08:02 raquezha