From 228b94afa404591760c1e9c379c1ccba92baeb79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80lex=20P=C3=A9rez?= Date: Sat, 16 Nov 2019 22:04:02 +0100 Subject: [PATCH] Change binary name --- Dockerfile | 12 ++++++------ Makefile | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index f41875e..07da9c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Build the manager binary +# Build the network-ingress-controller binary FROM golang:1.12.5 as builder WORKDIR /workspace @@ -15,13 +15,13 @@ COPY api/ api/ COPY controllers/ controllers/ # Build -RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o network-ingress-controller main.go -# Use distroless as minimal base image to package the manager binary +# Use distroless as minimal base image to package the network-ingress-controller binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM gcr.io/distroless/static:nonroot +FROM gcr.io/distroless/static:nonroot WORKDIR / -COPY --from=builder /workspace/manager . +COPY --from=builder /workspace/network-ingress-controller . USER nonroot:nonroot -ENTRYPOINT ["/manager"] +ENTRYPOINT ["/network-ingress-controller"] diff --git a/Makefile b/Makefile index b6c44cc..6cd408e 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ test: generate fmt vet manifests # Build manager binary manager: generate fmt vet - go build -o bin/manager main.go + go build -o bin/network-ingress-controller main.go # Run against the configured Kubernetes cluster in ~/.kube/config run: generate fmt vet manifests