Skip to content

Commit

Permalink
feat(HACBS-2425): add jq and krb5-workstation to dockerfile
Browse files Browse the repository at this point in the history
Update Dockerfile to include what's missing from the bundles Dockerfile

Signed-off-by: Troy <[email protected]>
  • Loading branch information
Troy876 committed Aug 15, 2023
1 parent 34901b1 commit 6d707dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ FROM registry.access.redhat.com/ubi8/ubi
ARG COSIGN_VERSION=2.1.1
ARG KUBECTL_VERSION=1.27.2
ARG OCP_VERSION=4.13.3
ARG JQ_VERSION=1.6
ARG YQ_VERSION=4.34.1
ARG GLAB_VERSION=1.31.0

RUN curl -L https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_amd64 -o /usr/bin/yq &&\
RUN curl -L https://github.com/stedolan/jq/releases/download/jq-{JQ_VERSION}/jq-linux64 -o /usr/bin/jq &&\
curl -L https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_amd64 -o /usr/bin/yq &&\
curl -L https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/bin/kubectl &&\
curl -L https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${OCP_VERSION}/opm-linux.tar.gz |tar -C /usr/bin -xzf - &&\
curl -L https://gitlab.com/gitlab-org/cli/-/releases/v${GLAB_VERSION}/downloads/glab_${GLAB_VERSION}_Linux_x86_64.tar.gz | tar -C /usr -xzf - bin/glab &&\
chmod +x /usr/bin/{yq,kubectl,opm,glab} &&\
chmod +x /usr/bin/{jq,yq,kubectl,opm,glab} &&\
rpm -ivh https://github.com/sigstore/cosign/releases/download/v${COSIGN_VERSION}/cosign-${COSIGN_VERSION}.x86_64.rpm

RUN dnf -y --setopt=tsflags=nodocs install \
Expand All @@ -19,6 +21,7 @@ RUN dnf -y --setopt=tsflags=nodocs install \
python39-devel \
python39-requests \
skopeo \
krb5-workstation \
&& dnf clean all

ADD data/certs/2015-IT-Root-CA.pem data/certs/2022-IT-Root-CA.pem /etc/pki/ca-trust/source/anchors/
Expand Down

0 comments on commit 6d707dc

Please sign in to comment.