-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (25 loc) · 1.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
FROM ubuntu:19.10
LABEL maintainer [email protected]
## Install packages
RUN apt-get -q update && apt-get -y -q upgrade && apt-get -y -q --no-install-recommends install apt-utils ca-certificates \
&& apt-get --assume-yes -q --no-install-recommends install \
apt-transport-https \
software-properties-common \
iproute2 \
isc-dhcp-client \
python3 \
openvswitch-common \
openvswitch-switch \
openvswitch-switch-dpdk \
python3-openvswitch \
openvswitch-pki \
openvswitch-testcontroller \
&& apt-get -q -y autoremove \
&& apt-get -q clean
# Create database and pid file directory
ADD create_ovs_db.sh /etc/openvswitch/create_ovs_db.sh
RUN /etc/openvswitch/create_ovs_db.sh
ADD ovs-override.conf /etc/depmod.d/openvswitch.conf
ADD start-ovs /bin/start-ovs
VOLUME ["/var/log/openvswitch", "/var/lib/openvswitch", "/var/run/openvswitch", "/etc/openvswitch"]
ENTRYPOINT ["start-ovs"]