From ce15c05a8a7d01cf7d92e81357aefa1f9b86a6d0 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Fri, 12 Aug 2022 12:28:13 +0200 Subject: ci(sonarscan): fixes for sonar build - Add submodule init before running the docker compose up command - Mount workspace with the :z flag to modify the selinux label of the directory - Build docker image with amd64 architecture, as sonar build wrapper only exists for x64 Ref: HICN-741 Signed-off-by: Mauro Sardara Change-Id: I3cc3e285ce216eec9795011f67758df590dc6fec Signed-off-by: Mauro Sardara --- scripts/Dockerfile.sonarcloud | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/Dockerfile.sonarcloud') diff --git a/scripts/Dockerfile.sonarcloud b/scripts/Dockerfile.sonarcloud index ad8b30ef7..edfe986a0 100644 --- a/scripts/Dockerfile.sonarcloud +++ b/scripts/Dockerfile.sonarcloud @@ -1,4 +1,5 @@ -FROM ubuntu:focal +FROM --platform=linux/amd64 ubuntu:focal + ENV DEBIAN_FRONTEND=noninteractive WORKDIR /workspace COPY Makefile versions.cmake ./ -- cgit 1.2.3-korg