blob: 4b714c504b1784cc10060226d2078b65881e43e9 [file] [log] [blame]
Jon Halldac3eae2020-06-05 12:04:06 -07001FROM opennetworking/mn-stratum
2
Jon Hall43060f62020-06-23 13:13:33 -07003ENV HOME /home/root
4WORKDIR $HOME
5RUN ln -s /root/* .
6RUN chmod 777 $HOME
7
8RUN install_packages python-pip openvswitch-switch vim quagga isc-dhcp-server isc-dhcp-client iptables vlan
Jon Halldac3eae2020-06-05 12:04:06 -07009RUN pip install ipaddress
Jon Hall43060f62020-06-23 13:13:33 -070010
11RUN ln -s $HOME /var/run/quagga
12RUN ln -s /usr/sbin/zebra /usr/lib/quagga/zebra
13RUN ln -s /usr/sbin/bgpd /usr/lib/quagga/bgpd
14
15# try to ensure dhclient can write pid files
16RUN chmod 777 /run
17RUN ls -al $HOME
18# Issue with Uubuntu/Apparmour
19RUN mv /sbin/dhclient /usr/local/bin/ \
20&& touch /var/lib/dhcp/dhcpd.leases
21
22# Install custom mininet branch
23run install_packages git sudo lsb-release
24RUN git clone https://github.com/jhall11/mininet.git \
25&& cd mininet \
26&& git branch -v -a \
27&& git checkout -b dynamic_topo origin/dynamic_topo \
28&& cd util \
29&& alias sudo='' \
30&& apt-get update \
31&& ./install.sh -3fvn
Jon Halldac3eae2020-06-05 12:04:06 -070032ENTRYPOINT bash