Skip to content

Commit 740f90c

Browse files
authored
bumping konstraint version (#381)
* bumped konstraint version
1 parent dbcd494 commit 740f90c

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

confbatstest/Dockerfile_build

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
# Builder image for konstraint
2-
FROM ghcr.io/plexsystems/konstraint:v0.36.0@sha256:bd68202968e50ec54ef5385c2f854c43fad70e7556f27f0bce1fe93ec76ab517 AS konstraint
3-
RUN echo "konstraint"
1+
# Konstraint Builder image
2+
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:3403e282d00e6f667822a652fe6b17c0fc5fdb04cc28509eb515381fb8496b39 AS konstraint
3+
4+
# renovate: datasource=github-releases depName=plexsystems/konstraint
5+
ARG KONSTRAINT_VERSION=v0.39.0
6+
7+
# go1.23 not released yet - so need to manually upgrade
8+
USER root
9+
RUN curl -L -o /tmp/go1.23.linux-amd64.tar.gz https://go.dev/dl/go1.23.0.linux-amd64.tar.gz && \
10+
tar -xzf /tmp/go1.23.linux-amd64.tar.gz && \
11+
mv go /usr/local && \
12+
PATH="/usr/local/go/bin:$PATH" && \
13+
go version
14+
15+
RUN PATH="/usr/local/go/bin:$PATH" go install github.com/plexsystems/konstraint@${KONSTRAINT_VERSION} && \
16+
mv ~/go/bin/konstraint /tmp/konstraint && \
17+
/tmp/konstraint --help
18+
19+
USER 1001
420

521
# Builder image
622
FROM registry.access.redhat.com/ubi9/ubi:9.5-1738814488@sha256:be214e191bbe3f4d0f16a5a4f5642e1f32fccd6fae7d2b6c6acb066ba51fb507 AS builder
@@ -80,7 +96,7 @@ RUN conftest --version
8096
COPY --from=builder /tmp/kubeval /usr/local/bin/kubeval
8197
RUN kubeval --version
8298

83-
COPY --from=konstraint /usr/bin/konstraint /usr/local/bin/konstraint
99+
COPY --from=konstraint /tmp/konstraint /usr/local/bin/konstraint
84100
RUN konstraint --help
85101

86102
USER root

0 commit comments

Comments
 (0)