green-code-initiative / ecoCode-android

Reduce the environmental footprint of your Java-based Android apps with SonarQube
https://ecocode.io
GNU General Public License v3.0
54 stars 17 forks source link

Add ARM64v8 support to Dockerfile #38

Closed obeone closed 1 year ago

obeone commented 1 year ago

[Mirror PR of https://github.com/green-code-initiative/ecoCode/pull/95]

With this PR, jar are built on amd64, and put in arm64v8 and amd64 SonarQube containers. There are two main advantages :

To be able to build locally on Apple M*, you need to use buildkit (buildx), like :

docker buildx create --use # If you don’t already have a builder
docker buildx build --load .

Github workflow is updated to build both platform

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information