1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00

Adding checksum for yq in libvirt installer containers

This commit is contained in:
deepsm007
2022-09-08 10:33:34 -04:00
parent cbb0b6c1cd
commit db7deb6b2e

View File

@@ -25,8 +25,13 @@ RUN yum update -y && \
openssh-clients && \
yum clean all && rm -rf /var/cache/yum/*
RUN curl -L https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64 -o /usr/bin/yq && \
chmod +x /usr/bin/yq
ARG YQ_URI=https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
ARG YQ_HASH=e70e482e7ddb9cf83b52f5e83b694a19e3aaf36acf6b82512cbe66e41d569201
RUN echo "${YQ_HASH} -" > /tmp/sum.txt && \
curl -L --fail "${YQ_URI}" | tee /bin/yq | sha256sum -c /tmp/sum.txt >/dev/null && \
chmod +x /bin/yq && \
rm /tmp/sum.txt
RUN mkdir /output && chown 1000:1000 /output
USER 1000:1000
ENV PATH /bin