Skip to content

Commit

Permalink
Temporary fix to get the rpms in the correct folder in both prow ci a…
Browse files Browse the repository at this point in the history
…nd the okd-payload-pipeline

Refers okd-project/okd-payload-pipeline#15
  • Loading branch information
aleskandro committed Oct 18, 2022
1 parent 5720133 commit 339b9b7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG FEDORA_COREOS_VERSION=412.37.0

WORKDIR /go/src/github.com/openshift/okd-machine-os
COPY . .
COPY --from=artifacts /srv/repo/*.rpm /tmp/rpms/
COPY --from=artifacts /srv/repo/ /tmp/rpms/
ADD overrides.yaml /etc/rpm-ostree/origin.d/overrides.yaml
RUN cat /etc/os-release \
&& rpm-ostree --version \
Expand All @@ -21,15 +21,16 @@ RUN cat /etc/os-release \
qemu-guest-agent \
cri-o \
cri-tools \
/tmp/rpms/openshift-clients-[0-9]*.rpm \
/tmp/rpms/openshift-hyperkube-*.rpm \
/tmp/rpms/$([ -d /tmp/rpms/$(uname -m) ] && echo $(uname -m)/)openshift-clients-[0-9]*.rpm \
/tmp/rpms/$([ -d /tmp/rpms/$(uname -m) ] && echo $(uname -m)/)openshift-hyperkube-*.rpm \
&& rpm-ostree cliwrap install-to-root / \
&& rpm-ostree override replace https://koji.fedoraproject.org/koji/buildinfo?buildID=1969515 \
&& rpm-ostree ex rebuild \
&& rpm-ostree cleanup -m \
&& ln -s /usr/sbin/ovs-vswitchd.dpdk /usr/sbin/ovs-vswitchd \
&& rm -rf /go /var/lib/unbound \
&& rm -rf /go /var/lib/unbound /tmp/rpms \
&& ostree container commit

LABEL io.openshift.release.operator=true \
io.openshift.build.version-display-names="machine-os=Fedora CoreOS" \
io.openshift.build.versions="machine-os=${FEDORA_COREOS_VERSION}"

0 comments on commit 339b9b7

Please sign in to comment.