Skip to content

Commit af0b1de

Browse files
Merge pull request #1222 from avinal/avinal/rhel9-img
BUILD-1317: add rhel9 based Dockerfile for s2i
2 parents 7ea9392 + 6cecd3b commit af0b1de

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

Dockerfile renamed to rhel8.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi8/go-toolset@sha256:be796155c0908cd48375bf1f7150036bcd3ad415dfb6cae135f1cf184d61964c AS builder
1+
FROM registry.access.redhat.com/ubi8/go-toolset:1.22 AS builder
22

33
ENV S2I_GIT_VERSION="1.5.0" \
44
S2I_GIT_MAJOR="1" \
@@ -11,7 +11,7 @@ COPY . .
1111
RUN CGO_ENABLED=1 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -tags="strictfipsruntime exclude_graphdriver_btrfs" -o /tmp/s2i ./cmd/s2i
1212

1313

14-
FROM registry.access.redhat.com/ubi8@sha256:37cdac4ec130a64050d6df4e1f2ef3f53868bea55d11f623d141f139ee342bd8
14+
FROM registry.redhat.io/ubi8/ubi-minimal:8.10
1515

1616
COPY --from=builder /tmp/s2i /usr/local/bin/s2i
1717

@@ -23,7 +23,7 @@ LABEL \
2323
name="source-to-image/source-to-image" \
2424
description="Source-to-Image is a builder image" \
2525
summary="Source-to-Image is a builder image" \
26-
version="1.5.0" \
26+
version="1.6.0" \
2727
vendor="Red Hat, Inc." \
2828
com.redhat.component="source-to-image-container" \
2929
maintainer="openshift-builds@redhat.com" \

rhel9.Dockerfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM registry.access.redhat.com/ubi8/go-toolset:1.22 AS builder
2+
ENV S2I_GIT_VERSION="1.5.0" \
3+
S2I_GIT_MAJOR="1" \
4+
S2I_GIT_MINOR="5"
5+
6+
ENV GOEXPERIMENT=strictfipsruntime
7+
8+
COPY . .
9+
10+
RUN CGO_ENABLED=1 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -tags="strictfipsruntime exclude_graphdriver_btrfs" -o /tmp/s2i ./cmd/s2i
11+
12+
13+
FROM registry.redhat.io/ubi9/ubi-minimal:9.6
14+
15+
COPY --from=builder /tmp/s2i /usr/local/bin/s2i
16+
17+
USER 1001
18+
19+
ENTRYPOINT [ "/usr/local/bin/s2i" ]
20+
21+
LABEL \
22+
name="source-to-image/source-to-image-rhel9" \
23+
description="Source-to-Image is a builder image" \
24+
summary="Source-to-Image is a builder image" \
25+
version="1.6.0" \
26+
vendor="Red Hat, Inc." \
27+
com.redhat.component="source-to-image-container" \
28+
maintainer="openshift-builds@redhat.com" \
29+
io.k8s.description="Source-to-Image is a builder image" \
30+
io.k8s.display-name="Source-to-Image" \
31+
io.openshift.tags="source-to-image,s2i" \
32+
io.openshift.maintainer.product="OpenShift Container Platform" \
33+
io.openshift.maintainer.component="Source-to-Image"

0 commit comments

Comments
 (0)