aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/docker-compose-sonar.yml
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2022-08-12 12:28:13 +0200
committerMauro Sardara <msardara@cisco.com>2022-08-12 12:31:31 +0200
commitce15c05a8a7d01cf7d92e81357aefa1f9b86a6d0 (patch)
tree9df7aac00afc385c26626dc1065f0af7dac60f0c /scripts/docker-compose-sonar.yml
parent94884d2a70bd65f9e85018aa154daa3d517d3ca8 (diff)
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 <msardara@cisco.com> Change-Id: I3cc3e285ce216eec9795011f67758df590dc6fec Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'scripts/docker-compose-sonar.yml')
-rw-r--r--scripts/docker-compose-sonar.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/docker-compose-sonar.yml b/scripts/docker-compose-sonar.yml
index d400d7517..198490546 100644
--- a/scripts/docker-compose-sonar.yml
+++ b/scripts/docker-compose-sonar.yml
@@ -12,7 +12,7 @@ services:
PROJECT_KEY: $PROJECT_KEY
PROJECT_ORGANIZATION: $PROJECT_ORGANIZATION
volumes:
- - ..:/workspace
+ - ..:/workspace:z
command:
- |
/workspace/scripts/run-sonar.sh \ No newline at end of file