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

Add multi platform build for Docker containers #8

Open
lilachic opened this issue Sep 1, 2023 · 0 comments
Open

Add multi platform build for Docker containers #8

lilachic opened this issue Sep 1, 2023 · 0 comments

Comments

@lilachic
Copy link
Contributor

lilachic commented Sep 1, 2023

Can we adjust pipeline to build containers with both AMD64 (x86) and ARM64 architecture? There is increasing amount of Macs with M1/M2 ARM processor architecture where amd64 containers don't run natively. Github actions do support multi platform build . An example from https://docs.docker.com/build/ci/github-actions/multi-platform/

        name: Build and push
        uses: docker/build-push-action@v4
        with:
          context: .
          platforms: linux/amd64,linux/arm64
          push: true
          tags: user/app:latest

This to succeed the emskd should be first support multi architecture building, but the multi platform container image is not found in Docker hub, https://hub.docker.com/r/emscripten/emsdk.

emscripten/emsdk:latest (3.1.45) and emscripten/emsdk:3.1.41 have both "Architecture": "amd64" .

Other drawback is that building this image is highly resource consuming , with 8G RAM virtual machine it takes almost 2 hours of time.

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

No branches or pull requests

1 participant