-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
33 lines (30 loc) · 1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:14.04
ENV deps \
build-essential \
libtool \
autoconf \
pkg-config \
libssl-dev \
python-pip \
git \
perl
WORKDIR /tmp/ovs
RUN \
apt-get update \
&& apt-get install -y python2.7 \
&& apt-get install -y python-flask \
&& apt-get install -y ${deps} \
&& pip install six \
&& git clone https://github.com/openvswitch/ovs.git /tmp/ovs \
&& git checkout origin/branch-2.5 \
&& ./boot.sh \
&& ./configure --localstatedir="/var" --sysconfdir="/etc" --prefix="/usr" --enable-ssl \
&& make install \
&& apt-get remove --purge -y $deps \
&& apt-get autoremove -y --purge \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/ovs \
&& ovsdb-tool create /etc/openvswitch/conf.db /usr/share/openvswitch/vswitch.ovsschema \
&& ovsdb-tool create /etc/openvswitch/ovnnb.db /usr/share/openvswitch/ovn-nb.ovsschema \
&& ovsdb-tool create /etc/openvswitch/ovnsb.db /usr/share/openvswitch/ovn-sb.ovsschema
VOLUME ["/var/log/openvswitch", "/var/lib/openvswitch", "/var/run/openvswitch", "/etc/openvswitch"]