Mohammed Naser | 8661577 | 2024-06-01 10:02:09 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: Apache-2.0 |
Rico Lin | 81e4e36 | 2024-11-01 12:46:23 +0800 | [diff] [blame] | 2 | # Atmosphere-Rebuild-Time: 2024-10-31T12:56:04Z |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 3 | |
Mohammed Naser | bcd5311 | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 4 | ARG REGISTRY |
Mohammed Naser | d30f18d | 2024-04-17 01:20:43 -0400 | [diff] [blame] | 5 | ARG RELEASE |
| 6 | |
Mohammed Naser | 4ad7b51 | 2024-12-11 23:34:48 -0500 | [diff] [blame] | 7 | 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] | 8 | ARG OVN_KUBERNETES_REF=5359e7d7f872058b6e5bf884c9f19d1922451f29 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 9 | ADD https://github.com/ovn-org/ovn-kubernetes.git#${OVN_KUBERNETES_REF} /src |
| 10 | COPY patches/ovn-kubernetes /patches/ovn-kubernetes |
| 11 | RUN git -C /src apply --verbose /patches/ovn-kubernetes/* |
| 12 | RUN <<EOF bash -xe |
| 13 | cd /src/go-controller |
| 14 | go build -o /usr/bin/ovn-kube-util ./cmd/ovn-kube-util |
| 15 | EOF |
| 16 | |
Mohammed Naser | bcd5311 | 2025-01-15 16:49:44 -0500 | [diff] [blame] | 17 | FROM ${REGISTRY}/openvswitch:${RELEASE} |
Tadas Sutkaitis | 1bb945e | 2024-06-21 08:46:05 +0300 | [diff] [blame] | 18 | ARG TARGETPLATFORM |
| 19 | ADD --chmod=755 https://dl.k8s.io/release/v1.29.3/bin/${TARGETPLATFORM}/kubectl /usr/local/bin/kubectl |
Mohammed Naser | e786d96 | 2024-06-26 01:08:34 -0400 | [diff] [blame] | 20 | ARG OVN_SERIES=24.03 |
| 21 | ARG OVN_VERSION=${OVN_SERIES}.1-44 |
Mohammed Naser | da99423 | 2024-04-13 12:34:01 -0400 | [diff] [blame] | 22 | RUN <<EOF sh -xe |
| 23 | dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \ |
| 24 | firewalld-filesystem hostname ovn${OVN_SERIES}-${OVN_VERSION}.el9s procps-ng |
| 25 | dnf -y clean all |
| 26 | rm -rf /var/cache/dnf |
| 27 | EOF |
| 28 | ARG OVN_COMPONENT |
| 29 | RUN <<EOF sh -xe |
| 30 | dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \ |
| 31 | ovn${OVN_SERIES}-${OVN_COMPONENT}-${OVN_VERSION}.el9s |
| 32 | dnf -y clean all |
| 33 | rm -rf /var/cache/dnf |
| 34 | EOF |
| 35 | COPY --from=ovn-kubernetes --link /src/dist/images/ovndb-raft-functions.sh /root/ovndb-raft-functions.sh |
| 36 | COPY --from=ovn-kubernetes --link /src/dist/images/ovnkube.sh /root/ovnkube.sh |
| 37 | COPY --from=ovn-kubernetes --link /usr/bin/ovn-kube-util /usr/bin/ovn-kube-util |