1
0
mirror of https://github.com/openshift/source-to-image.git synced 2026-02-05 12:44:54 +01:00

Use UBI8 based base image and builder image

Changes:
- Use UIB8 based base imgae
- Use go-toolset from UBI8

Currently comet repo exists for rhel-8 based images, so to onboard to konflux easily we'll go ahead with rehl-8 image now. When comet repo for rhel-9 is configured, we'll switch to rehl-9 based images.
This commit is contained in:
Sayan Biswas
2024-09-28 20:21:23 +05:30
committed by Sayan Biswas
parent 425e023eb9
commit f68cc16834
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@
/.atom-build.yml
/.project
/.vagrant
/.idea
cmd/s2i/debug
*~

View File

@@ -1,4 +1,4 @@
FROM registry.redhat.io/ubi9/go-toolset:1.21.13 AS builder
FROM registry.redhat.io/ubi8/go-toolset:1.21 AS builder
ENV S2I_GIT_VERSION="" \
S2I_GIT_MAJOR="" \
@@ -12,7 +12,7 @@ RUN CGO_ENABLED=0 go build -a -ldflags="-s -w" -o /tmp/s2i ./cmd/s2i
# Runner Image
#
FROM registry.redhat.io/ubi9/ubi-minimal:9.4
FROM registry.redhat.io/ubi8/ubi-minimal:8.10
COPY --from=builder /tmp/s2i /usr/local/bin/s2i