blob: 3ee23da52200251177c75bf0f91d96542f7fe619 [file] [log] [blame]
Mohammed Naser564caa82025-01-18 15:49:44 -05001# SPDX-FileCopyrightText: © 2025 VEXXHOST, Inc.
2# SPDX-License-Identifier: GPL-3.0-or-later
Mohammed Nasere786d962024-06-26 01:08:34 -04003# Atmosphere-Rebuild-Time: 2024-06-25T22:49:25Z
Mohammed Naserda994232024-04-13 12:34:01 -04004
Mohammed Naser564caa82025-01-18 15:49:44 -05005FROM centos
Mohammed Naser6b0543d2024-06-27 11:09:14 -04006ADD --chmod=755 https://github.com/krallin/tini/releases/download/v0.19.0/tini /tini
Mohammed Naser65cda132024-05-02 14:34:08 -04007ARG OVS_SERIES=3.2
Mohammed Naserbfbf31e2024-05-30 20:45:38 -04008ARG OVS_VERSION=${OVS_SERIES}.0-80
Mohammed Naserda994232024-04-13 12:34:01 -04009RUN <<EOF sh -xe
10dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
11 centos-release-nfv-openvswitch.noarch
12dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs install \
Mohammed Naserc4a43492024-07-15 19:38:36 -040013 iptables \
14 openvswitch${OVS_SERIES}-${OVS_VERSION}.el9s \
15 openvswitch${OVS_SERIES}-test-${OVS_VERSION}.el9s \
16 python3-netifaces \
17 tcpdump
Mohammed Naserda994232024-04-13 12:34:01 -040018dnf -y clean all
19rm -rf /var/cache/dnf
Yaguang Tange4321552025-01-17 20:14:29 +080020usermod -u 42424 openvswitch
21groupmod -g 42424 openvswitch
Mohammed Naserda994232024-04-13 12:34:01 -040022EOF