diff --git a/images/installer/Dockerfile.upi.ci b/images/installer/Dockerfile.upi.ci index b0d01981062..9929719376c 100644 --- a/images/installer/Dockerfile.upi.ci +++ b/images/installer/Dockerfile.upi.ci @@ -38,6 +38,13 @@ RUN yum update -y && \ rm -rf /var/cache/yum/* && \ chmod g+w /etc/passwd +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-go | sha256sum -c /tmp/sum.txt >/dev/null && \ + chmod +x /bin/yq-go && \ + rm /tmp/sum.txt + RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py RUN python get-pip.py 'pip<21.0' RUN python -m pip install pyopenssl diff --git a/images/installer/Dockerfile.upi.ci.rhel8 b/images/installer/Dockerfile.upi.ci.rhel8 index 66e6c307b25..f604aa81a26 100644 --- a/images/installer/Dockerfile.upi.ci.rhel8 +++ b/images/installer/Dockerfile.upi.ci.rhel8 @@ -38,6 +38,13 @@ RUN yum update -y && \ rm -rf /var/cache/yum/* && \ chmod g+w /etc/passwd +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-go | sha256sum -c /tmp/sum.txt >/dev/null && \ + chmod +x /bin/yq-go && \ + rm /tmp/sum.txt + # Not packaged for Python 2, but required by gcloud. See https://cloud.google.com/sdk/crypto RUN pip-2 install pyopenssl ENV CLOUDSDK_PYTHON=/usr/bin/python