-
Notifications
You must be signed in to change notification settings - Fork 142
/
Dockerfile.microshift
30 lines (23 loc) · 1.05 KB
/
Dockerfile.microshift
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
#
# This is the MicroShift ovn overlay network image.
# it provides an overlay network using ovs/ovn/ovn-kube
#
# The standard name for this image is ovn-kubernetes-singlenode
#
# ovn-kubernetes-singlenode is a simplified version of
# ovn-kubernetes image built for MicroShift product.
# Some rpm packages and ovn-kubernetes binaries are removed
# from this image, for example:
#
# openvswitch-devel, openvswitch-ipsec, libpcap, iproute etc
# ovn-kube-util, hybrid-overlay-node.exe, ovndbchecker and ovnkube-trace
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
WORKDIR /go/src/github.com/openshift/ovn-kubernetes
COPY . .
# build the binaries
RUN cd go-controller; CGO_ENABLED=0 make
FROM registry.ci.openshift.org/ocp/4.17:ovn-kubernetes-base
USER root
ENV PYTHONDONTWRITEBYTECODE yes
COPY --from=builder /go/src/github.com/openshift/ovn-kubernetes/go-controller/_output/go/bin/ovnkube /usr/bin/
COPY --from=builder /go/src/github.com/openshift/ovn-kubernetes/go-controller/_output/go/bin/ovn-k8s-cni-overlay /usr/libexec/cni/