blob: 598e5aaf32e7607f7ce9b5cc19b35fa67ae0f920 [file] [log] [blame]
Mohammed Naser86615772024-06-01 10:02:09 -04001# SPDX-License-Identifier: Apache-2.0
Mohammed Naser142dc922024-06-20 21:19:25 -04002# Atmosphere-Rebuild-Time: 2024-06-17T13:34:17Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
Mohammed Naserda994232024-04-13 12:34:01 -04006FROM golang:1.20 AS ovn-kubernetes
Rico Lin1b101192024-04-16 05:57:09 +08007ARG OVN_KUBERNETES_REF=5359e7d7f872058b6e5bf884c9f19d1922451f29
Mohammed Naserda994232024-04-13 12:34:01 -04008ADD https://github.com/ovn-org/ovn-kubernetes.git#${OVN_KUBERNETES_REF} /src
9COPY patches/ovn-kubernetes /patches/ovn-kubernetes
10RUN git -C /src apply --verbose /patches/ovn-kubernetes/*
11RUN <<EOF bash -xe
12cd /src/go-controller
13go build -o /usr/bin/ovn-kube-util ./cmd/ovn-kube-util
14EOF
15
Mohammed Naserd30f18d2024-04-17 01:20:43 -040016FROM registry.atmosphere.dev/library/openvswitch:${RELEASE}
Mohammed Naserda994232024-04-13 12:34:01 -040017ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl
Mohammed Naser65cda132024-05-02 14:34:08 -040018ARG OVN_SERIES=23.09
19ARG OVN_VERSION=${OVN_SERIES}.0-136
Mohammed Naserda994232024-04-13 12:34:01 -040020RUN <<EOF sh -xe
21dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
22 firewalld-filesystem hostname ovn${OVN_SERIES}-${OVN_VERSION}.el9s procps-ng
23dnf -y clean all
24rm -rf /var/cache/dnf
25EOF
26ARG OVN_COMPONENT
27RUN <<EOF sh -xe
28dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
29 ovn${OVN_SERIES}-${OVN_COMPONENT}-${OVN_VERSION}.el9s
30dnf -y clean all
31rm -rf /var/cache/dnf
32EOF
33COPY --from=ovn-kubernetes --link /src/dist/images/ovndb-raft-functions.sh /root/ovndb-raft-functions.sh
34COPY --from=ovn-kubernetes --link /src/dist/images/ovnkube.sh /root/ovnkube.sh
35COPY --from=ovn-kubernetes --link /usr/bin/ovn-kube-util /usr/bin/ovn-kube-util