Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
vexxhost-bot | c2fd428 | 2024-06-26 07:04:25 +0200 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-06-25T13:53:44Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 4 | ARG RELEASE |
| 5 | |
Yaguang Tang | 0953b61 | 2024-12-13 04:14:34 +0800 | [diff] [blame^] | 6 | FROM harbor.atmosphere.dev/docker.io/library/golang:1.20 AS ovn-kubernetes |
Rico Lin | 1b10119 | 2024-04-16 05:57:09 +0800 | [diff] [blame] | 7 | ARG OVN_KUBERNETES_REF=5359e7d7f872058b6e5bf884c9f19d1922451f29 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 8 | ADD https://github.com/ovn-org/ovn-kubernetes.git#${OVN_KUBERNETES_REF} /src |
| 9 | COPY patches/ovn-kubernetes /patches/ovn-kubernetes |
| 10 | RUN git -C /src apply --verbose /patches/ovn-kubernetes/* |
| 11 | RUN <<EOF bash -xe |
| 12 | cd /src/go-controller |
| 13 | go build -o /usr/bin/ovn-kube-util ./cmd/ovn-kube-util |
| 14 | EOF |
| 15 | |
Yaguang Tang | 0953b61 | 2024-12-13 04:14:34 +0800 | [diff] [blame^] | 16 | FROM harbor.atmosphere.dev/library/openvswitch:${RELEASE} |
vexxhost-bot | f77e4ba | 2024-06-21 14:24:28 +0200 | [diff] [blame] | 17 | ARG TARGETPLATFORM |
| 18 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/${TARGETPLATFORM}/kubectl /usr/local/bin/kubectl |
Mohammed Naser | 2433adc | 2024-06-26 15:34:45 -0400 | [diff] [blame] | 19 | ARG OVN_SERIES=24.03 |
| 20 | ARG OVN_VERSION=${OVN_SERIES}.1-44 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 21 | RUN <<EOF sh -xe |
| 22 | dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \ |
| 23 | firewalld-filesystem hostname ovn${OVN_SERIES}-${OVN_VERSION}.el9s procps-ng |
| 24 | dnf -y clean all |
| 25 | rm -rf /var/cache/dnf |
| 26 | EOF |
| 27 | ARG OVN_COMPONENT |
| 28 | RUN <<EOF sh -xe |
| 29 | dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \ |
| 30 | ovn${OVN_SERIES}-${OVN_COMPONENT}-${OVN_VERSION}.el9s |
| 31 | dnf -y clean all |
| 32 | rm -rf /var/cache/dnf |
| 33 | EOF |
| 34 | COPY --from=ovn-kubernetes --link /src/dist/images/ovndb-raft-functions.sh /root/ovndb-raft-functions.sh |
| 35 | COPY --from=ovn-kubernetes --link /src/dist/images/ovnkube.sh /root/ovnkube.sh |
| 36 | COPY --from=ovn-kubernetes --link /usr/bin/ovn-kube-util /usr/bin/ovn-kube-util |