From ead17cd12037aebe2ff16a3f1b9e29f750e6ef17 Mon Sep 17 00:00:00 2001 From: hbelmiro Date: Mon, 16 Sep 2024 15:51:18 -0300 Subject: [PATCH] chore: Added GOOS=linux GOARCH=amd64 to Dockerfiles --- backend/Dockerfile | 2 +- backend/Dockerfile.cacheserver | 2 +- backend/Dockerfile.persistenceagent | 2 +- backend/Dockerfile.scheduledworkflow | 2 +- backend/Dockerfile.viewercontroller | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index fc8d1ca84676..e7a65f3bff4a 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -17,7 +17,7 @@ FROM golang:1.21.7-bookworm as builder RUN apt-get update && apt-get install -y cmake clang musl-dev openssl WORKDIR /go/src/github.com/kubeflow/pipelines COPY . . -RUN GO111MODULE=on go build -o /bin/apiserver backend/src/apiserver/*.go +RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/apiserver backend/src/apiserver/*.go # Check licenses and comply with license terms. RUN ./hack/install-go-licenses.sh # First, make sure there's no forbidden license. diff --git a/backend/Dockerfile.cacheserver b/backend/Dockerfile.cacheserver index 1def8f513633..92acf6ef99da 100644 --- a/backend/Dockerfile.cacheserver +++ b/backend/Dockerfile.cacheserver @@ -21,7 +21,7 @@ RUN apk update && apk upgrade && \ WORKDIR /go/src/github.com/kubeflow/pipelines COPY . . -RUN GO111MODULE=on go build -o /bin/cache_server backend/src/cache/*.go +RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/cache_server backend/src/cache/*.go # Check licenses and comply with license terms. RUN ./hack/install-go-licenses.sh diff --git a/backend/Dockerfile.persistenceagent b/backend/Dockerfile.persistenceagent index 04206168735f..a515574a7ed0 100644 --- a/backend/Dockerfile.persistenceagent +++ b/backend/Dockerfile.persistenceagent @@ -21,7 +21,7 @@ COPY . . RUN apk update && apk upgrade && \ apk add --no-cache bash git openssh gcc musl-dev -RUN GO111MODULE=on go build -o /bin/persistence_agent backend/src/agent/persistence/*.go +RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/persistence_agent backend/src/agent/persistence/*.go # Check licenses and comply with license terms. RUN ./hack/install-go-licenses.sh # First, make sure there's no forbidden license. diff --git a/backend/Dockerfile.scheduledworkflow b/backend/Dockerfile.scheduledworkflow index 2fb190bf647e..b31a53eabd9a 100644 --- a/backend/Dockerfile.scheduledworkflow +++ b/backend/Dockerfile.scheduledworkflow @@ -21,7 +21,7 @@ COPY . . RUN apk update && apk upgrade && \ apk add --no-cache bash git openssh gcc musl-dev -RUN GO111MODULE=on go build -o /bin/controller backend/src/crd/controller/scheduledworkflow/*.go +RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/controller backend/src/crd/controller/scheduledworkflow/*.go # Check licenses and comply with license terms. RUN ./hack/install-go-licenses.sh # First, make sure there's no forbidden license. diff --git a/backend/Dockerfile.viewercontroller b/backend/Dockerfile.viewercontroller index 32278729f135..6a1d1c5f723f 100644 --- a/backend/Dockerfile.viewercontroller +++ b/backend/Dockerfile.viewercontroller @@ -20,7 +20,7 @@ RUN apk add --no-cache git gcc musl-dev WORKDIR /src/github.com/kubeflow/pipelines COPY . . -RUN GO111MODULE=on go build -o /bin/controller backend/src/crd/controller/viewer/*.go +RUN GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o /bin/controller backend/src/crd/controller/viewer/*.go # Check licenses and comply with license terms. RUN ./hack/install-go-licenses.sh # First, make sure there's no forbidden license.