diff --git a/Dockerfile b/Dockerfile index cf7958668a4f9ac88b313248fe4699acd0046e55..6aab5b8198d1bd2ab76cb9c273a2ce4f22a5370a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.24 as builder +FROM golang:1.24 AS builder WORKDIR / RUN apt-get update && apt-get install unzip RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v29.1/protoc-29.1-linux-x86_64.zip @@ -29,9 +29,6 @@ RUN CGO_ENABLED=0 GOOS=linux go test ./... WORKDIR /build/pkg/cmd/server RUN CGO_ENABLED=0 GOOS=linux go build -RUN cat /build/go.mod -RUN cat /build/go.sum - FROM alpine:latest MAINTAINER nmaas@lists.geant.org COPY --from=builder /build/pkg/cmd/server/server /go/bin/nmaas-janitor diff --git a/sonar-project.properties b/sonar-project.properties index 269a37e8180b6b5e9e348cd6fe2fc6ee9576d534..15f8f9844ea4771861fad06c472465ad4a40441d 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,15 +1,5 @@ -# must be unique in a given SonarQube instance -#sonar.projectKey=my:project +sonar.sources=. +sonar.exclusions=**/*_test.go -# --- optional properties --- - -# defaults to project key -#sonar.projectName=My project -# defaults to 'not provided' -#sonar.projectVersion=1.0 - -# Path is relative to the sonar-project.properties file. Defaults to . -#sonar.sources=. - -# Encoding of the source code. Default is default system encoding -#sonar.sourceEncoding=UTF-8 \ No newline at end of file +sonar.tests=. +sonar.test.inclusions=**/*_test.go \ No newline at end of file