aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceK8sExternalProvider
diff options
context:
space:
mode:
Diffstat (limited to 'certServiceK8sExternalProvider')
-rw-r--r--certServiceK8sExternalProvider/Dockerfile2
-rw-r--r--certServiceK8sExternalProvider/pom.xml2
2 files changed, 4 insertions, 0 deletions
diff --git a/certServiceK8sExternalProvider/Dockerfile b/certServiceK8sExternalProvider/Dockerfile
index baea932b..c6c34a85 100644
--- a/certServiceK8sExternalProvider/Dockerfile
+++ b/certServiceK8sExternalProvider/Dockerfile
@@ -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
diff --git a/certServiceK8sExternalProvider/pom.xml b/certServiceK8sExternalProvider/pom.xml
index 6be62b77..2b999837 100644
--- a/certServiceK8sExternalProvider/pom.xml
+++ b/certServiceK8sExternalProvider/pom.xml
@@ -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>