From 897cf897e7a18d629e46ddff8b2408e926c47003 Mon Sep 17 00:00:00 2001 From: Stephen Benjamin Date: Mon, 23 Mar 2020 08:02:43 -0400 Subject: [PATCH] images/baremetal: save rhcos.json in container image For the baremetal platform, we need to know where the images are in order to mirror them. Especially for IPv6 environments where we may not have outbound internet access to download the images. Typically, we download the rhcos.json from the sha reported by `openshift-install version` but this doesn't work in CI, where PR's are always rebased on master and the sha reported doesn't exist on GitHub. This is a temporary workaround until the machine OS content is part of the release image itself. --- images/baremetal/Dockerfile.ci | 1 + 1 file changed, 1 insertion(+) diff --git a/images/baremetal/Dockerfile.ci b/images/baremetal/Dockerfile.ci index 1943850cc71..c14cf29e17f 100644 --- a/images/baremetal/Dockerfile.ci +++ b/images/baremetal/Dockerfile.ci @@ -11,6 +11,7 @@ RUN TAGS="libvirt baremetal" hack/build.sh FROM registry.svc.ci.openshift.org/origin/4.1:base COPY --from=builder /go/src/github.com/openshift/installer/bin/openshift-install /bin/openshift-install +COPY --from=builder /go/src/github.com/openshift/installer/data/data/rhcos.json /var/cache/ RUN yum update -y && \ yum install --setopt=tsflags=nodocs -y \