From 6463d6d889c4679de8ea8935a63ab68b2cefc116 Mon Sep 17 00:00:00 2001 From: Christian Menges Date: Sun, 2 Oct 2022 22:32:31 +0200 Subject: [PATCH] build: remove deprecated go build -i Signed-off-by: Christian Menges --- cmd/fluent-watcher/fluentbit/Dockerfile | 2 +- cmd/fluent-watcher/fluentd/Dockerfile.amd64 | 2 +- cmd/fluent-watcher/fluentd/Dockerfile.arm64 | 2 +- cmd/fluent-watcher/fluentd/Dockerfile.arm64.quick | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/fluent-watcher/fluentbit/Dockerfile b/cmd/fluent-watcher/fluentbit/Dockerfile index 3df46ad26..2411c64f1 100644 --- a/cmd/fluent-watcher/fluentbit/Dockerfile +++ b/cmd/fluent-watcher/fluentbit/Dockerfile @@ -4,7 +4,7 @@ RUN mkdir -p /code COPY . /code/ WORKDIR /code RUN echo $(ls -al /code) -RUN CGO_ENABLED=0 go build -i -ldflags '-w -s' -o /fluent-bit/fluent-bit /code/cmd/fluent-watcher/fluentbit/main.go +RUN CGO_ENABLED=0 go build -ldflags '-w -s' -o /fluent-bit/fluent-bit /code/cmd/fluent-watcher/fluentbit/main.go FROM fluent/fluent-bit:1.9.9 LABEL Description="Fluent Bit docker image" Vendor="Fluent" Version="1.0" diff --git a/cmd/fluent-watcher/fluentd/Dockerfile.amd64 b/cmd/fluent-watcher/fluentd/Dockerfile.amd64 index 135fc2da3..68dcb5b1b 100644 --- a/cmd/fluent-watcher/fluentd/Dockerfile.amd64 +++ b/cmd/fluent-watcher/fluentd/Dockerfile.amd64 @@ -5,7 +5,7 @@ RUN mkdir -p /code COPY . /code/ WORKDIR /code RUN echo $(ls -al /code) -RUN CGO_ENABLED=0 go build -i -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go +RUN CGO_ENABLED=0 go build -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go # Fluentd main image FROM alpine:3.13 diff --git a/cmd/fluent-watcher/fluentd/Dockerfile.arm64 b/cmd/fluent-watcher/fluentd/Dockerfile.arm64 index eafd33961..975bc2c5b 100644 --- a/cmd/fluent-watcher/fluentd/Dockerfile.arm64 +++ b/cmd/fluent-watcher/fluentd/Dockerfile.arm64 @@ -5,7 +5,7 @@ RUN mkdir -p /code COPY . /code/ WORKDIR /code RUN echo $(ls -al /code) -RUN CGO_ENABLED=0 go build -i -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go +RUN CGO_ENABLED=0 go build -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go # To set multiarch build for Docker hub automated build. FROM golang:alpine AS builderqemu diff --git a/cmd/fluent-watcher/fluentd/Dockerfile.arm64.quick b/cmd/fluent-watcher/fluentd/Dockerfile.arm64.quick index 6e9d43d41..e89eefe62 100644 --- a/cmd/fluent-watcher/fluentd/Dockerfile.arm64.quick +++ b/cmd/fluent-watcher/fluentd/Dockerfile.arm64.quick @@ -5,7 +5,7 @@ RUN mkdir -p /code COPY . /code/ WORKDIR /code RUN echo $(ls -al /code) -RUN CGO_ENABLED=0 go build -i -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go +RUN CGO_ENABLED=0 go build -ldflags '-w -s' -o /fluentd/fluentd-watcher /code/cmd/fluent-watcher/fluentd/main.go # Fluentd main image FROM kubesphere/fluentd:v1.14.6-arm64-base