[TEST] Fix xtesting security docker build issue 33/125333/1
authorMichal Jagiello <michal.jagiello@t-mobile.pl>
Mon, 25 Oct 2021 18:56:10 +0000 (18:56 +0000)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Mon, 25 Oct 2021 18:56:10 +0000 (18:56 +0000)
Add two go commands to fix build issue.

Issue-ID: TEST-367
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I740d5b46448f8ba32061314f6518651162f37975

security/docker/Dockerfile

index 3565653..89a04c5 100644 (file)
@@ -2,12 +2,14 @@ FROM golang:1.17 AS build_yq
 WORKDIR /go/src/github.com/mikefarah/
 RUN git clone https://github.com/mikefarah/yq.git --depth 1
 WORKDIR /go/src/github.com/mikefarah/yq
+RUN go mod tidy
 RUN CGO_ENABLED=0 go install -a -ldflags '-w -s -extldflags "-static"'
 
 FROM golang:1.17 AS build_onap
 WORKDIR /opt/onap
 RUN git clone https://git.onap.org/integration --depth 1
 WORKDIR /opt/onap/integration/test/security/sslendpoints
+RUN go mod tidy
 RUN CGO_ENABLED=0 go install -a -ldflags '-w -s -extldflags "-static"'
 
 FROM opnfv/xtesting:wallaby AS run