Apple M1 chips are ARM based architecture. When we run docker with --platform linux/x86_64
option It's run on qemu emulation which won't give us the best performance. To get more information look at docker apple-silicon docs.
To get native performance of M1 chip you can do as below.
- Build your own sonarqube image from Sonarqube Dockerfile on Applie slicon.
git clone https://github.com/SonarSource/docker-sonarqube
cd docker-sonarqube/9/community
#build
docker build -t sonarqube-arm .
#run
docker run -d -p 9000:9000 sonarqube-arm
OR
- You can use ARM based sonarqube docker image which I built recently on AWS ARM based server.
docker run -d -p 9000:9000 koolwithk/sonarqube-arm:9.2.4-community