blob: 4859b2937f92973d498029adc1f7611500750a47 [file] [log] [blame]
vexxhost-bot6e0e4362024-06-01 21:24:08 +02001# SPDX-License-Identifier: Apache-2.0
vexxhost-bot65e04a22024-06-26 15:46:55 +02002# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04003
Mohammed Naserd30f18d2024-04-17 01:20:43 -04004ARG RELEASE
5
Yaguang Tangba6760e2024-12-13 12:59:40 +08006FROM harbor.atmosphere.dev/docker.io/library/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
Yaguang Tangba6760e2024-12-13 12:59:40 +080016FROM harbor.atmosphere.dev/library/openvswitch:${RELEASE}
vexxhost-bot2db27b92024-06-21 20:27:43 +020017ARG TARGETPLATFORM
18ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/${TARGETPLATFORM}/kubectl /usr/local/bin/kubectl
vexxhost-bot65e04a22024-06-26 15:46:55 +020019ARG OVN_SERIES=24.03
20ARG OVN_VERSION=${OVN_SERIES}.1-44
Mohammed Naserda994232024-04-13 12:34:01 -040021RUN <<EOF sh -xe
22dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
23 firewalld-filesystem hostname ovn${OVN_SERIES}-${OVN_VERSION}.el9s procps-ng
24dnf -y clean all
25rm -rf /var/cache/dnf
26EOF
27ARG OVN_COMPONENT
28RUN <<EOF sh -xe
29dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
30 ovn${OVN_SERIES}-${OVN_COMPONENT}-${OVN_VERSION}.el9s
31dnf -y clean all
32rm -rf /var/cache/dnf
33EOF
34COPY --from=ovn-kubernetes --link /src/dist/images/ovndb-raft-functions.sh /root/ovndb-raft-functions.sh
35COPY --from=ovn-kubernetes --link /src/dist/images/ovnkube.sh /root/ovnkube.sh
36COPY --from=ovn-kubernetes --link /usr/bin/ovn-kube-util /usr/bin/ovn-kube-util