-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM centos:8 as ovs-rpm | ||
|
||
RUN yum install dnf-plugins-core -y && \ | ||
yum config-manager --set-enabled PowerTools && \ | ||
yum install python36 git wget openssl-devel gcc \ | ||
make python3-devel openssl-devel kernel-devel kernel-debug-devel \ | ||
autoconf automake rpm-build redhat-rpm-config libtool libcap-ng-devel \ | ||
checkpolicy selinux-policy-devel unbound unbound-devel gcc-c++ \ | ||
desktop-file-utils graphviz groff python3-sphinx -y | ||
COPY build.sh /root/build.sh | ||
RUN bash /root/build.sh | ||
ENV ARCH x86_64 | ||
RUN mkdir /rpms/ && \ | ||
cp /ovs/rpm/rpmbuild/RPMS/${ARCH}/* /ovn/rpm/rpmbuild/RPMS/${ARCH}/* /rpms && \ | ||
cd /rpms && rm -f *debug* *docker* *vtep* *ipsec* | ||
|
||
|
||
FROM centos:8 | ||
|
||
RUN yum install -y \ | ||
bind-utils \ | ||
numactl-libs \ | ||
firewalld-filesystem \ | ||
iptables \ | ||
libpcap \ | ||
hostname \ | ||
iproute strace socat nc \ | ||
unbound unbound-devel \ | ||
tcpdump ipset && yum clean all | ||
COPY --from=ovs-rpm /rpms/* /rpms/ | ||
RUN rpm -ivh --nodeps /rpms/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
wget https://github.com/jemalloc/jemalloc/archive/5.2.1.tar.gz | ||
tar -zxvf 5.2.1.tar.gz | ||
cd jemalloc-5.2.1 | ||
./autogen.sh | ||
make dist | ||
make && make install | ||
echo "/usr/local/lib" > /etc/ld.so.conf.d/other.conf | ||
/sbin/ldconfig | ||
cd .. | ||
|
||
git clone -b branch-2.13 --depth=1 https://github.com/openvswitch/ovs.git | ||
cd ovs | ||
curl https://github.com/alauda/ovs/commit/238003290766808ba310e1875157b3d414245603.patch | git apply | ||
sed -i 's/2.13.1/2.13.0/g' configure.ac | ||
sed -i 's/sphinx-build-3/sphinx-build/g' rhel/openvswitch-fedora.spec.in | ||
./boot.sh | ||
./configure LIBS=-ljemalloc | ||
make rpm-fedora | ||
cd .. | ||
|
||
git clone -b branch-20.03 --depth=1 https://github.com/ovn-org/ovn.git | ||
cd ovn | ||
curl https://github.com/alauda/ovn/commit/19e802b80c866089af8f7a21512f68decc75a874.patch | git apply | ||
sed -i 's/20.03.1/20.03.0/g' configure.ac | ||
./boot.sh | ||
./configure LIBS=-ljemalloc --with-ovs-source=/ovs | ||
make rpm-fedora |