Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgraded versions for confbatstest #72

Merged
merged 3 commits into from
Mar 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions confbatstest/Dockerfile_build
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# Builder image for go
FROM registry.access.redhat.com/ubi9/go-toolset:1.17.7 AS go-builder
RUN GOBIN=/tmp/go-bin go install github.com/plexsystems/konstraint@latest && \
FROM registry.access.redhat.com/ubi9/go-toolset:1.18 AS go-builder

# go1.19 not released yet - so need to manaully upgrade
USER root
RUN curl -L -o /tmp/go1.19.linux-amd64.tar.gz https://go.dev/dl/go1.19.linux-amd64.tar.gz && \
tar -xzf /tmp/go1.19.linux-amd64.tar.gz && \
mv go /usr/local && \
PATH="/usr/local/go/bin:$PATH" && \
go version

RUN PATH="/usr/local/go/bin:$PATH" GOBIN=/tmp/go-bin go install github.com/plexsystems/konstraint@latest && \
/tmp/go-bin/konstraint --help

# Builder image
FROM registry.access.redhat.com/ubi9/ubi:9.0.0 AS builder
FROM registry.access.redhat.com/ubi9/ubi:9.1 AS builder

RUN export HELM_VERSION=3.7.2 && \
RUN export HELM_VERSION=3.11.1 && \
curl -L -o /tmp/helm-v${HELM_VERSION}-linux-amd64.tar.gz https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
tar -C /tmp -xzf /tmp/helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
/tmp/linux-amd64/helm version
Expand All @@ -16,18 +25,18 @@ RUN export JQ_VERSION=1.6 && \
chmod +x /tmp/jq-linux64 && \
/tmp/jq-linux64 --version

RUN export OC_VERSION=4.9.0 && \
RUN export OC_VERSION=4.12.0 && \
curl -L -o /tmp/openshift-client-linux.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/ocp/${OC_VERSION}/openshift-client-linux.tar.gz && \
tar -C /tmp -xzf /tmp/openshift-client-linux.tar.gz && \
/tmp/oc version && \
/tmp/kubectl version
/tmp/oc version --client && \
/tmp/kubectl version --client

RUN export OPA_VERSION=v0.36.1 && \
RUN export OPA_VERSION=v0.49.2 && \
curl -L -o /tmp/opa_linux_amd64 https://github.com/open-policy-agent/opa/releases/download/${OPA_VERSION}/opa_linux_amd64 && \
chmod +x /tmp/opa_linux_amd64 && \
/tmp/opa_linux_amd64 --help

RUN export CONFTEST_VERSION=0.30.0 && \
RUN export CONFTEST_VERSION=0.39.2 && \
curl -L -o /tmp/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz https://github.com/open-policy-agent/conftest/releases/download/v${CONFTEST_VERSION}/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz && \
tar -C /tmp -xzf /tmp/conftest_${CONFTEST_VERSION}_Linux_x86_64.tar.gz && \
/tmp/conftest --version
Expand Down Expand Up @@ -57,8 +66,8 @@ RUN jq --version

COPY --from=builder /tmp/oc /usr/local/bin/oc
COPY --from=builder /tmp/kubectl /usr/local/bin/kubectl
RUN oc version && \
kubectl version
RUN oc version --client && \
kubectl version --client

COPY --from=builder /tmp/opa_linux_amd64 /usr/local/bin/opa
RUN opa --help
Expand Down