[ 
https://issues.apache.org/jira/browse/YUNIKORN-725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17493843#comment-17493843
 ] 

Sebastián R commented on YUNIKORN-725:
--------------------------------------

Hi [~wwei], as [~wilfreds] mentioned, it's not necessary to have a new 
environment to build multi-arch images. However, I think it's important to 
clarify some points:
 * Currently the binaries are compiled before the images (not in the same 
Dockerfile), so in the docker build process it only copies the binary inside 
the image.
 * With docker buildx, using a single dockerfile you get a multi-arch image, 
supporting multiple platforms {*}with the same tag{*}.
 * If the idea is to keep generating the binaries by cross-compiling with go 
you would need to have different dockerfiles for each architecture and in order 
to get multi-arch images you would need to unify them by using docker manifest. 
This 
[post|https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/] 
explains the different approaches.

I have 
[experience|https://github.com/grycap/oscar/blob/master/.github/workflows/main.yaml#L27]
 working with docker buildx compiling the binaries within the image creation 
process (it can be done on another stage), but it is true that the building is 
slower since it uses qemu to emulate the different architectures. Moreover, 
cross-compiling with go is faster, but creating a multi-arch image is more 
tedious. So I think the first step is to decide which approach to use.

> Support arm64
> -------------
>
>                 Key: YUNIKORN-725
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-725
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>            Reporter: Holden Karau
>            Priority: Major
>
> It would be good to support arm64, this is probably not too painful and can 
> be done by swapping docker build with docker buildx, but there's often edge 
> cases where some code changes are needed.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to