question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ARM/M1 support for docker image

See original GitHub issue

Using 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:

  1. Update the base image for the builder to use am ARM JDK, like bellsoft/liberica-openjdk-alpine:11
  2. 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:open
  • Created 2 years ago
  • Reactions:3
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
anarangcommented, May 4, 2022

@psiinon thanks, it worked! sorry I missed it in the docs.

0reactions
psiinoncommented, May 4, 2022

On https://www.zaproxy.org/docs/docker/baseline-scan/

To run it with no ‘file’ params use:

docker run -t owasp/zap2docker-stable zap-baseline.py -t https://www.example.com

If you use ‘file’ params then you need to mount the directory those file are in or will be generated in, eg

docker run -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable zap-baseline.py \
    -t https://www.example.com -g gen.conf -r testreport.html

Also in https://www.zaproxy.org/docs/docker/diagnosing-problems/#cannot-access-created-files

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found