ARM/M1 support for docker image
See original GitHub issueUsing the existing image doesn’t work, even emulated, on M1 Mac; the webswing page hangs mid load.
I might recommend the following changes to the dockerfile to get native ARM/M1 support:
- Update the base image for the builder to use am ARM JDK, like
bellsoft/liberica-openjdk-alpine:11
- Remove JAVA_HOME bits because a) They are platform-specific which causes rebuilding on ARM to pull the ARM ubuntu image then reference the x86 JRE b) They don’t seem to be required; I removed them and the app works fine
Finagling the image a bit more to pull files from git into the builder then copy from builder into the image, I was able to get zap running pretty well on my M1 mac mini. For an official build, pulling from git wouldn’t be relevant.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Run x86 (Intel) and ARM based images on Apple Silicon (M1 ...
Being an Apple customer, I am wondering if use a Mac Mini M1, do ALL Docker images run as expected? Does this happen...
Read more >Choosing the right Docker Image for your Apple M1 Pro
For example, the busybox image supports amd64, arm32v5, arm32v6, arm32v7, arm64v8, i386, ppc64le, and s390x. When running this image on an ...
Read more >Which Docker Images Can You Use On The Mac M1?
Most official Docker Images created by Docker have support for ARM64. Docker Images with the ARM64 tag run on the Mac M1 natively....
Read more >How to build Docker Images for Apple Silicon (aka M1 Chip)
Learn more about building multi-architecture Docker Images for both x86 and Apple Silicon (M1) locally and via CircleCI.
Read more >Choosing the right Docker Image for your Apple M1 Pro
2 image), digest, and platform support, if it is an OCI index or Docker v2.2 manifest list. Let us try to run mquery...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@psiinon thanks, it worked! sorry I missed it in the docs.
On https://www.zaproxy.org/docs/docker/baseline-scan/
Also in https://www.zaproxy.org/docs/docker/diagnosing-problems/#cannot-access-created-files