Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arm64/v8 Images #10

Open
samkhawase opened this issue Mar 4, 2021 · 10 comments
Open

Arm64/v8 Images #10

samkhawase opened this issue Mar 4, 2021 · 10 comments
Assignees

Comments

@samkhawase
Copy link

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:
docker/setup-buildx-action#54

@alvr
Copy link
Owner

alvr commented Mar 5, 2021

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.

@samkhawase
Copy link
Author

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

@rizrmd
Copy link

rizrmd commented Jul 22, 2021

Is there any update on this ?

@alvr
Copy link
Owner

alvr commented Jul 22, 2021

@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
Copy link
Owner

alvr commented Jul 25, 2021

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 alvr self-assigned this Oct 22, 2021
@pjq
Copy link

pjq commented Aug 3, 2022

Any update about it?

@inekrasov-intermedia
Copy link

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

@edwnmrtnz
Copy link

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

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

@wafer-li
Copy link

Any updates?

@raquezha
Copy link

Following up for updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants