Fix Docker file to copy cert files correctly 85/8485/1 1.1.0
authorelinuxhenrik <henrik.b.andersson@est.tech>
Thu, 2 Jun 2022 12:48:38 +0000 (14:48 +0200)
committerelinuxhenrik <henrik.b.andersson@est.tech>
Thu, 2 Jun 2022 12:48:46 +0000 (14:48 +0200)
Issue-ID: NONRTRIC-760
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: I50c1a8464f633088b06481fb000c0441a1872cee

goversion/Dockerfile
goversion/main.go

index 97beddd..8b4b2bc 100644 (file)
@@ -16,13 +16,13 @@ RUN go build -o /docker-oruclosedloop
 ##
 ## Deploy
 ##
-FROM gcr.io/distroless/base-debian10
+FROM gcr.io/distroless/base-debian11
 
 WORKDIR /
 
 ## Copy from "build" stage
 COPY --from=build /docker-oruclosedloop .
-COPY --from=build /app/security/ ./security/
+COPY --from=build /app/security//security/
 COPY --from=build /app/o-ru-to-o-du-map.csv .
 
 USER nonroot:nonroot
index 9a1d45e..a5ccedf 100644 (file)
@@ -38,6 +38,7 @@ import (
 )
 
 const jobId = "14e7bb84-a44d-44c1-90b7-6995a92ad43c"
+
 var job_definition interface{}
 
 var jobRegistrationInfo = struct {
@@ -93,7 +94,7 @@ func main() {
        if c, err := restclient.CreateClientCertificate(configuration.ConsumerCertPath, configuration.ConsumerKeyPath); err == nil {
                cert = c
        } else {
-               log.Fatalf("Stopping producer due to error: %v", err)
+               log.Fatalf("Stopping consumer due to error: %v", err)
        }
        client = restclient.CreateRetryClient(cert)