Skip to content

Commit

Permalink
Merge pull request #532 from vrutkovs/4.12-feb20
Browse files Browse the repository at this point in the history
[release-4.12] Revert "DEBUG: don't pull in fresh FCOS"
  • Loading branch information
openshift-merge-robot authored Mar 2, 2023
2 parents ab7f050 + e9553d8 commit d33b4c2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
40 changes: 21 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
FROM registry.ci.openshift.org/origin/4.12:artifacts as artifacts

FROM registry.ci.openshift.org/origin/4.12:machine-os-content
FROM quay.io/fedora/fedora-coreos:stable
ARG FEDORA_COREOS_VERSION=412.37.0

WORKDIR /go/src/github.com/openshift/okd-machine-os
COPY . .
COPY --from=artifacts /srv/repo/ /tmp/rpms/
RUN cat /etc/os-release \
&& rpm-ostree --version \
&& ostree --version \
&& cp -irvf overlay.d/*/* / \
&& cp -irvf bootstrap / \
&& cp -irvf manifests / \
&& cp -ivf crio.repo /etc/yum.repos.d/ \
&& rpm-ostree install \
NetworkManager-ovs \
open-vm-tools \
qemu-guest-agent \
cri-o \
cri-tools \
netcat \
#&& rpm-ostree override replace /tmp/rpms/openshift-hyperkube-*.rpm \
&& rpm-ostree cleanup -m \
&& rm -rf /go /tmp/rpms /var/cache /var/lib/unbound \
&& systemctl preset-all \
&& ostree container commit
&& rpm-ostree --version \
&& ostree --version \
&& cp -irvf overlay.d/*/* / \
&& cp -irvf bootstrap / \
&& cp -irvf manifests / \
&& cp -ivf crio.repo /etc/yum.repos.d/ \
&& rpm-ostree install \
NetworkManager-ovs \
open-vm-tools \
qemu-guest-agent \
cri-o \
cri-tools \
netcat \
/tmp/rpms/openshift-clients-[0-9]*.rpm \
/tmp/rpms/openshift-hyperkube-*.rpm \
&& rpm-ostree cleanup -m \
&& ln -s /usr/sbin/ovs-vswitchd.dpdk /usr/sbin/ovs-vswitchd \
&& rm -rf /go /tmp/rpms /var/cache /var/lib/unbound \
&& systemctl preset-all \
&& ostree container commit

LABEL io.openshift.release.operator=true \
io.openshift.build.version-display-names="machine-os=Fedora CoreOS" \
Expand Down
2 changes: 1 addition & 1 deletion crio.repo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[cri-o_1.25]
name=devel:kubic:libcontainers:stable:cri-o:1.25 (Fedora_37)
type=rpm-md
baseurl=https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.25/Fedora_37/
baseurl=https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.25:/1.25.1/Fedora_36/
gpgcheck=1
gpgkey=https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable:/cri-o:/1.25/Fedora_37/repodata/repomd.xml.key
enabled=1
Expand Down

0 comments on commit d33b4c2

Please sign in to comment.