A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 1 | FROM ubuntu:14.04 |
| 2 | MAINTAINER chetan@ciena.com |
| 3 | RUN apt-get update && \ |
| 4 | apt-get install -y git git-core autoconf automake autotools-dev pkg-config \ |
| 5 | make gcc g++ libtool libc6-dev cmake libpcap-dev libxerces-c2-dev \ |
| 6 | unzip libpcre3-dev flex bison libboost-dev \ |
| 7 | python python-pip python-setuptools python-scapy tcpdump doxygen doxypy wget \ |
| 8 | openvswitch-common openvswitch-switch \ |
A R Karthick | 07608ef | 2016-08-23 16:51:19 -0700 | [diff] [blame] | 9 | python-twisted python-sqlite sqlite3 python-pexpect telnet arping isc-dhcp-server \ |
Chetan Gaonker | d63a237 | 2017-03-03 22:16:22 +0000 | [diff] [blame] | 10 | python-paramiko python-maas-client python-keystoneclient python-neutronclient python-glanceclient \ |
| 11 | python-novaclient |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 12 | RUN easy_install nose |
| 13 | RUN mkdir -p /root/ovs |
| 14 | WORKDIR /root |
| 15 | RUN wget http://openvswitch.org/releases/openvswitch-2.5.0.tar.gz -O /root/ovs/openvswitch-2.5.0.tar.gz && \ |
| 16 | (cd /root/ovs && tar zxpvf openvswitch-2.5.0.tar.gz && \ |
| 17 | cd openvswitch-2.5.0 && \ |
| 18 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && make && make install) |
| 19 | RUN service openvswitch-switch restart || /bin/true |
A.R Karthick | ec5b72a | 2016-11-03 09:53:07 -0700 | [diff] [blame] | 20 | RUN pip install scapy==2.3.2 scapy-ssl_tls==1.2.2 monotonic configObj docker-py pyyaml nsenter pyroute2 netaddr python-daemon |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 21 | RUN mv /usr/sbin/tcpdump /sbin/ |
| 22 | RUN ln -sf /sbin/tcpdump /usr/sbin/tcpdump |
A R Karthick | f499947 | 2016-07-01 16:42:13 -0700 | [diff] [blame] | 23 | RUN mv /usr/sbin/dhcpd /sbin/ |
| 24 | RUN ln -sf /sbin/dhcpd /usr/sbin/dhcpd |
A.R Karthick | caf82ac | 2017-04-17 17:45:24 -0700 | [diff] [blame^] | 25 | RUN mv /sbin/dhclient /usr/sbin/ |
| 26 | RUN ln -sf /usr/sbin/dhclient /sbin/dhclient |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 27 | WORKDIR /root |
| 28 | RUN wget -nc http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_2.5.dfsg-2.1_amd64.deb \ |
| 29 | http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/libbison-dev_2.5.dfsg-2.1_amd64.deb |
| 30 | RUN sudo dpkg -i bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb |
| 31 | RUN rm bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb |
| 32 | RUN wget -nc http://www.nbee.org/download/nbeesrc-jan-10-2013.zip && \ |
| 33 | unzip nbeesrc-jan-10-2013.zip && \ |
| 34 | cd nbeesrc-jan-10-2013/src && cmake . && make && \ |
| 35 | cp ../bin/libn*.so /usr/local/lib && ldconfig && \ |
| 36 | cp -R ../include/* /usr/include/ |
| 37 | WORKDIR /root |
| 38 | RUN git clone https://github.com/CPqD/ofsoftswitch13.git && \ |
| 39 | cd ofsoftswitch13 && \ |
| 40 | ./boot.sh && \ |
| 41 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && \ |
| 42 | make && make install |
| 43 | CMD ["/bin/bash"] |