Skip to content

Commit

Permalink
set GOFLAGS to empty string for RHTAP builds (#1300)
Browse files Browse the repository at this point in the history
Signed-off-by: Subbarao Meduri <[email protected]>
  • Loading branch information
subbarao-meduri authored Jan 2, 2024
1 parent 653ed71 commit 2dc20cf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion collectors/metrics/Containerfile.operator
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY go.sum go.mod ./
COPY ./collectors/metrics ./collectors/metrics
COPY ./operators/pkg ./operators/pkg
COPY ./operators/multiclusterobservability/api ./operators/multiclusterobservability/api
RUN CGO_ENABLED=1 go build -a -installsuffix cgo -v -o metrics-collector ./collectors/metrics/cmd/metrics-collector/main.go
RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -v -o metrics-collector ./collectors/metrics/cmd/metrics-collector/main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

Expand Down
2 changes: 1 addition & 1 deletion loaders/dashboards/Containerfile.operator
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR /workspace
COPY go.sum go.mod ./loaders/dashboards ./
COPY ./loaders/dashboards ./loaders/dashboards

RUN CGO_ENABLED=1 go build -a -installsuffix cgo -v -o main loaders/dashboards/cmd/main.go
RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -v -o main loaders/dashboards/cmd/main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

Expand Down
2 changes: 1 addition & 1 deletion operators/endpointmetrics/Containerfile.operator
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY ./operators/endpointmetrics ./operators/endpointmetrics
COPY ./operators/multiclusterobservability/api ./operators/multiclusterobservability/api
COPY ./operators/pkg ./operators/pkg

RUN CGO_ENABLED=1 go build -a -installsuffix cgo -o build/_output/bin/endpoint-monitoring-operator operators/endpointmetrics/main.go
RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -o build/_output/bin/endpoint-monitoring-operator operators/endpointmetrics/main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

Expand Down
2 changes: 1 addition & 1 deletion operators/multiclusterobservability/Containerfile.operator
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY go.sum go.mod ./
COPY ./operators/multiclusterobservability ./operators/multiclusterobservability
COPY ./operators/pkg ./operators/pkg

RUN CGO_ENABLED=1 go build -a -installsuffix cgo -o bin/manager operators/multiclusterobservability/main.go
RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -o bin/manager operators/multiclusterobservability/main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

Expand Down
2 changes: 1 addition & 1 deletion proxy/Containerfile.operator
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /workspace
COPY go.sum go.mod ./
COPY ./proxy ./proxy

RUN CGO_ENABLED=1 go build -a -installsuffix cgo -v -o main proxy/cmd/main.go
RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -v -o main proxy/cmd/main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

Expand Down
2 changes: 1 addition & 1 deletion tools/simulator/alert-forward/Containerfile.operator
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR /workspace
COPY go.sum go.mod ./
COPY tools/simulator/alert-forward/main.go tools/simulator/alert-forward/main.go

RUN CGO_ENABLED=1 go build -a -installsuffix cgo -o bin/alert-forwarder tools/simulator/alert-forward/main.go
RUN CGO_ENABLED=1 GOFLAGS="" go build -a -installsuffix cgo -o bin/alert-forwarder tools/simulator/alert-forward/main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

Expand Down

0 comments on commit 2dc20cf

Please sign in to comment.