Skip to content

Commit 7493bb2

Browse files
Merge pull request #6225 from jianlinliu/release-4.11-fix
Bug 2118514: [4.11] Download yq in upi installer containers
2 parents 1d2450c + 07cae4a commit 7493bb2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

images/installer/Dockerfile.upi.ci

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ RUN yum update -y && \
3838
rm -rf /var/cache/yum/* && \
3939
chmod g+w /etc/passwd
4040

41+
ARG YQ_URI=https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
42+
ARG YQ_HASH=e70e482e7ddb9cf83b52f5e83b694a19e3aaf36acf6b82512cbe66e41d569201
43+
RUN echo "${YQ_HASH} -" > /tmp/sum.txt && \
44+
curl -L --fail "${YQ_URI}" | tee /bin/yq-go | sha256sum -c /tmp/sum.txt >/dev/null && \
45+
chmod +x /bin/yq-go && \
46+
rm /tmp/sum.txt
47+
4148
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
4249
RUN python get-pip.py 'pip<21.0'
4350
RUN python -m pip install pyopenssl

images/installer/Dockerfile.upi.ci.rhel8

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ RUN yum update -y && \
3838
rm -rf /var/cache/yum/* && \
3939
chmod g+w /etc/passwd
4040

41+
ARG YQ_URI=https://github.com/mikefarah/yq/releases/download/3.3.0/yq_linux_amd64
42+
ARG YQ_HASH=e70e482e7ddb9cf83b52f5e83b694a19e3aaf36acf6b82512cbe66e41d569201
43+
RUN echo "${YQ_HASH} -" > /tmp/sum.txt && \
44+
curl -L --fail "${YQ_URI}" | tee /bin/yq-go | sha256sum -c /tmp/sum.txt >/dev/null && \
45+
chmod +x /bin/yq-go && \
46+
rm /tmp/sum.txt
47+
4148
# Not packaged for Python 2, but required by gcloud. See https://cloud.google.com/sdk/crypto
4249
RUN pip-2 install pyopenssl
4350
ENV CLOUDSDK_PYTHON=/usr/bin/python

0 commit comments

Comments
 (0)