Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame^] | 1 | # SPDX-License-Identifier: Apache-2.0 |
| 2 | # Atmosphere-Rebuild-Time: 2024-05-30T20:29:01Z |
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 | |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 6 | FROM 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 | |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 16 | FROM registry.atmosphere.dev/library/openvswitch:${RELEASE} |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 17 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/linux/amd64/kubectl /usr/local/bin/kubectl |
Mohammed Naser | 65cda13 | 2024-05-02 14:34:08 -0400 | [diff] [blame] | 18 | ARG OVN_SERIES=23.09 |
| 19 | ARG OVN_VERSION=${OVN_SERIES}.0-136 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 20 | RUN <<EOF sh -xe |
| 21 | dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \ |
| 22 | firewalld-filesystem hostname ovn${OVN_SERIES}-${OVN_VERSION}.el9s procps-ng |
| 23 | dnf -y clean all |
| 24 | rm -rf /var/cache/dnf |
| 25 | EOF |
| 26 | ARG OVN_COMPONENT |
| 27 | RUN <<EOF sh -xe |
| 28 | dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \ |
| 29 | ovn${OVN_SERIES}-${OVN_COMPONENT}-${OVN_VERSION}.el9s |
| 30 | dnf -y clean all |
| 31 | rm -rf /var/cache/dnf |
| 32 | EOF |
| 33 | COPY --from=ovn-kubernetes --link /src/dist/images/ovndb-raft-functions.sh /root/ovndb-raft-functions.sh |
| 34 | COPY --from=ovn-kubernetes --link /src/dist/images/ovnkube.sh /root/ovnkube.sh |
| 35 | COPY --from=ovn-kubernetes --link /usr/bin/ovn-kube-util /usr/bin/ovn-kube-util |