Skip to content

Commit 825dce0

Browse files
committed
Updated libvirt installer to include multi-arch yq and symlink for backwards compatibility
1 parent 7e4d988 commit 825dce0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

images/libvirt/Dockerfile.ci

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terr
1414
RUN DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh
1515

1616
FROM registry.ci.openshift.org/ocp/4.16:cli as cli
17+
FROM quay.io/multi-arch/yq:3.3.0 as yq3
18+
FROM quay.io/multi-arch/yq:4.30.5 as yq4
1719

1820
FROM quay.io/centos/centos:stream
1921
COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install
@@ -32,12 +34,10 @@ RUN yum update -y && \
3234
openssh-clients && \
3335
yum clean all && rm -rf /var/cache/yum/*
3436

35-
ARG YQ_URI=https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
36-
ARG YQ_HASH=e70e482e7ddb9cf83b52f5e83b694a19e3aaf36acf6b82512cbe66e41d569201
37-
RUN echo "${YQ_HASH} -" > /tmp/sum.txt && \
38-
curl -L --fail "${YQ_URI}" | tee /bin/yq | sha256sum -c /tmp/sum.txt >/dev/null && \
39-
chmod +x /bin/yq && \
40-
rm /tmp/sum.txt
37+
COPY --from=yq3 /yq /bin/yq-go
38+
COPY --from=yq4 /usr/bin/yq /bin/yq-v4
39+
# This symlink is provided for backwards compatibility
40+
RUN ln -s /bin/yq-go /bin/yq && chmod +x /bin/yq
4141

4242
RUN mkdir /output && chown 1000:1000 /output
4343
USER 1000:1000

0 commit comments

Comments
 (0)