File tree Expand file tree Collapse file tree 5 files changed +12
-15
lines changed Expand file tree Collapse file tree 5 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 15
15
# Build arguments
16
16
ARG SOURCE_CODE=.
17
17
18
- FROM registry.access.redhat.com/ubi8 /go-toolset:1.22 as builder
18
+ FROM registry.access.redhat.com/ubi9 /go-toolset:1.22 as builder
19
19
20
20
USER root
21
21
# Downloading Argo CLI so that the samples are validated
@@ -37,10 +37,10 @@ RUN GO111MODULE=on go mod download
37
37
# Copy the source
38
38
COPY ${SOURCE_CODE}/ ./
39
39
40
- RUN GO111MODULE=on go build -o /bin/apiserver ./backend/src/apiserver/ && \
40
+ RUN GO111MODULE=on CGO_ENABLED=1 GOEXPERIMENT=strictfipsruntime go build -tags strictfipsruntime -o /bin/apiserver ./backend/src/apiserver/ && \
41
41
dnf clean all
42
42
43
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest
43
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:9.5
44
44
45
45
WORKDIR /bin
46
46
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ RUN GO111MODULE=on go mod download
34
34
# Copy the source
35
35
COPY ${SOURCE_CODE}/ ./
36
36
37
- RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags netgo -ldflags '-extldflags "-static" ' -o /bin/driver ./backend/src/v2/cmd/driver/*.go
37
+ RUN GO111MODULE=on CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GOEXPERIMENT=strictfipsruntime go build -tags ' netgo strictfipsruntime ' -o /bin/driver ./backend/src/v2/cmd/driver/*.go
38
38
39
39
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.5
40
40
Original file line number Diff line number Diff line change 16
16
ARG SOURCE_CODE=.
17
17
ARG CI_CONTAINER_VERSION="unknown"
18
18
19
-
20
- # Use ubi8/go-toolset as base image
21
- FROM registry.access.redhat.com/ubi8/go-toolset:1.22 as builder
19
+ FROM registry.access.redhat.com/ubi9/go-toolset:1.22 as builder
22
20
23
21
## Build args to be used at this step
24
22
ARG SOURCE_CODE
@@ -37,9 +35,9 @@ RUN GO111MODULE=on go mod download
37
35
# Copy the source
38
36
COPY ${SOURCE_CODE}/ ./
39
37
40
- RUN GO111MODULE=on go build -o /bin/persistence_agent backend/src/agent/persistence/*.go
38
+ RUN GO111MODULE=on CGO_ENABLED=1 GOEXPERIMENT=strictfipsruntime go build -tags strictfipsruntime -o /bin/persistence_agent backend/src/agent/persistence/*.go
41
39
42
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest
40
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:9.5
43
41
WORKDIR /bin
44
42
45
43
COPY --from=builder /bin/persistence_agent /bin/persistence_agent
Original file line number Diff line number Diff line change 15
15
# Build arguments
16
16
ARG SOURCE_CODE=.
17
17
18
- # Use ubi8/nodejs-14 as base image
19
- FROM registry.access.redhat.com/ubi8/go-toolset:1.22 as builder
18
+ FROM registry.access.redhat.com/ubi9/go-toolset:1.22 as builder
20
19
21
20
## Build args to be used at this step
22
21
ARG SOURCE_CODE
@@ -42,9 +41,9 @@ RUN GO111MODULE=on go mod download
42
41
# Copy the source
43
42
COPY ${SOURCE_CODE}/ ./
44
43
45
- RUN GO111MODULE=on go build -o /bin/controller backend/src/crd/controller/scheduledworkflow/*.go
44
+ RUN GO111MODULE=on CGO_ENABLED=1 GOEXPERIMENT=strictfipsruntime go build -tags strictfipsruntime -o /bin/controller backend/src/crd/controller/scheduledworkflow/*.go
46
45
47
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:latest
46
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:9.5
48
47
WORKDIR /bin
49
48
50
49
COPY --from=builder /bin/controller /bin/controller
Original file line number Diff line number Diff line change 1
- FROM registry.access.redhat.com/ubi8 /go-toolset:1.20 as builder
1
+ FROM registry.access.redhat.com/ubi9 /go-toolset:1.22 as builder
2
2
3
3
WORKDIR /tmp
4
4
RUN git clone https://github.com/openshift/build-machinery-go.git && \
5
5
cd /tmp/build-machinery-go/commitchecker && \
6
6
go build
7
7
8
- FROM registry.access.redhat.com/ubi8 /ubi-minimal:8.9
8
+ FROM registry.access.redhat.com/ubi9 /ubi-minimal:9.5
9
9
10
10
WORKDIR /bin
11
11
You can’t perform that action at this time.
0 commit comments