[OOM-K8S-CERT-EXTERNAL-PROVIDER] Fix Dockerfile 64/113364/3
authorJan Malkiewicz <jan.malkiewicz@nokia.com>
Wed, 30 Sep 2020 11:39:08 +0000 (13:39 +0200)
committerJan Malkiewicz <jan.malkiewicz@nokia.com>
Wed, 30 Sep 2020 11:49:01 +0000 (13:49 +0200)
Issue-ID: OOM-2559
Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com>
Change-Id: Ie957e9f5deb5cc5f934765bee8e612bb9e517c2c

certServiceK8sExternalProvider/Dockerfile
certServiceK8sExternalProvider/pom.xml

index baea932..c6c34a8 100644 (file)
@@ -4,12 +4,14 @@ FROM golang:1.15.2 as builder
 WORKDIR /workspace
 # Copy the Go Modules manifests
 COPY go.* ./
+
 # cache deps before building and copying source so that we don't need to re-download as much
 # and so that source changes don't invalidate our downloaded layer
 RUN go mod download
 
 # Copy the go source
 COPY main.go main.go
+COPY src/ ./src
 
 # Build
 RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o oom-certservice-k8s-external-provider main.go
index 6be62b7..2b99983 100644 (file)
@@ -53,6 +53,8 @@
             <configuration>
               <packages>
                 <package>onap.org/oom-certservice/k8s-external-provider</package>
+                <package>onap.org/oom-certservice/k8s-external-provider/main</package>
+                <package>onap.org/oom-certservice/k8s-external-provider/certservice-provisioner</package>
               </packages>
             </configuration>
           </execution>