File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,13 +18,17 @@ items:
1818 dockerfile : |
1919 FROM quay.io/openshift/origin-cli:latest
2020 WORKDIR /var/lib/origin
21+ ENV ART_DNF_WRAPPER_POLICY=skip
2122 RUN source /etc/os-release \
2223 && rhel_major=${VERSION_ID%.*} \
23- && yum config-manager \
24- --add-repo "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi${rhel_major}/${rhel_major}/\$basearch/baseos/os/" \
25- --add-repo "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi${rhel_major}/${rhel_major}/\$basearch/appstream/os/"
26- RUN yum install -y skopeo && \
27- yum clean all && mkdir -p gnupg && chmod -R 0777 /var/lib/origin
24+ && if ! yum install -y skopeo; then \
25+ echo "Unable to install skopeo; adding UBI repositories and retrying" && \
26+ yum config-manager \
27+ --add-repo "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi${rhel_major}/${rhel_major}/\$basearch/baseos/os/" \
28+ --add-repo "https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi${rhel_major}/${rhel_major}/\$basearch/appstream/os/" && \
29+ yum install -y skopeo ; \
30+ fi
31+ RUN yum clean all && mkdir -p gnupg && chmod -R 0777 /var/lib/origin
2832 RUN echo $'%echo Generating openpgp key ...\n\
2933 Key-Type: RSA \n\
3034 Key-Length: 2048 \n\
You can’t perform that action at this time.
0 commit comments