Skip to content

Commit

Permalink
Use UBI8 based base image and builder image
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sayan-biswas committed Sep 28, 2024
1 parent 4b0e17b commit a956489
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/.atom-build.yml
/.project
/.vagrant
/.idea
cmd/s2i/debug
*~

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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="" \
Expand All @@ -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

Expand Down

0 comments on commit a956489

Please sign in to comment.