Skip to content

Commit

Permalink
OpenShift CI Image: Add azure cli to the container image
Browse files Browse the repository at this point in the history
This is consumed by openshift/release repo to create a job to test
crc on windows, using azure. It also include some more packages like
jq, sshpass ..etc. which is used during the job config on
openshift/release repo.
  • Loading branch information
praveenkumar committed May 17, 2022
1 parent c372e93 commit 4d1c6af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions images/openshift-ci/Dockerfile
Expand Up @@ -9,8 +9,10 @@ RUN make release
FROM quay.io/centos/centos:stream8
COPY --from=builder /go/src/github.com/code-ready/crc /opt/crc
COPY --from=builder /go/src/github.com/code-ready/crc/out/linux-amd64/crc /bin/crc
COPY --from=builder /go/src/github.com/code-ready/crc/out/windows-amd64/crc.exe /opt/crc.exe
COPY --from=builder /go/src/github.com/code-ready/crc/images/openshift-ci/mock-nss.sh /bin/mock-nss.sh
COPY --from=builder /go/src/github.com/code-ready/crc/images/openshift-ci/google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo
COPY --from=builder /go/src/github.com/code-ready/crc/images/openshift-ci/azure-cli.repo /etc/yum.repos.d/azure-cli.repo

RUN yum update -y && \
yum install --setopt=tsflags=nodocs -y \
Expand All @@ -21,6 +23,9 @@ RUN yum update -y && \
libvirt-libs \
nss_wrapper \
unzip \
sshpass \
jq \
azure-cli \
openssh-clients && \
yum clean all && rm -rf /var/cache/yum/*
RUN mkdir /output && chown 1000:1000 /output
Expand Down
6 changes: 6 additions & 0 deletions images/openshift-ci/azure-cli.repo
@@ -0,0 +1,6 @@
[azure-cli]
name=Azure CLI
baseurl=https://packages.microsoft.com/yumrepos/azure-cli
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc

0 comments on commit 4d1c6af

Please sign in to comment.