Skip to content

Commit

Permalink
Merge pull request #6225 from jianlinliu/release-4.11-fix
Browse files Browse the repository at this point in the history
Bug 2118514: [4.11] Download yq in upi installer containers
  • Loading branch information
openshift-merge-robot authored Aug 17, 2022
2 parents 1d2450c + 07cae4a commit 7493bb2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions images/installer/Dockerfile.upi.ci
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions images/installer/Dockerfile.upi.ci.rhel8
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7493bb2

Please sign in to comment.