-
Notifications
You must be signed in to change notification settings - Fork 27
/
Dockerfile
37 lines (34 loc) · 1.52 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM registry.ci.openshift.org/origin/4.12:artifacts as artifacts
FROM quay.io/fedora/fedora-coreos:next-devel
ARG FEDORA_COREOS_VERSION=412.37.0
WORKDIR /go/src/github.com/openshift/okd-machine-os
COPY . .
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 \
&& ostree --version \
&& cp -irvf overlay.d/*/* / \
&& systemctl enable gcp-routes gcp-hostname \
&& cp -irvf bootstrap / \
&& cp -irvf manifests / \
&& cp -ivf *.repo /etc/yum.repos.d/ \
&& rpm-ostree install \
NetworkManager-ovs \
open-vm-tools \
qemu-guest-agent \
cri-o \
cri-tools \
# TODO: temporary fix in the next two rows: see okd-project/okd-payload-pipeline#15
/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 /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}"