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 | 8cf29ac | 2016-06-30 16:25:14 -0700 | [diff] [blame] | 9 | python-twisted python-sqlite sqlite3 python-pexpect telnet arping isc-dhcp-server |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 10 | RUN easy_install nose |
| 11 | RUN mkdir -p /root/ovs |
| 12 | WORKDIR /root |
| 13 | RUN wget http://openvswitch.org/releases/openvswitch-2.5.0.tar.gz -O /root/ovs/openvswitch-2.5.0.tar.gz && \ |
| 14 | (cd /root/ovs && tar zxpvf openvswitch-2.5.0.tar.gz && \ |
| 15 | cd openvswitch-2.5.0 && \ |
| 16 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && make && make install) |
| 17 | RUN service openvswitch-switch restart || /bin/true |
A R Karthick | 81acbff | 2016-06-17 14:45:16 -0700 | [diff] [blame] | 18 | RUN pip install -U scapy scapy-ssl_tls monotonic configObj docker-py pyyaml nsenter pyroute2 netaddr python-daemon |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 19 | RUN mv /usr/sbin/tcpdump /sbin/ |
| 20 | RUN ln -sf /sbin/tcpdump /usr/sbin/tcpdump |
A R Karthick | f499947 | 2016-07-01 16:42:13 -0700 | [diff] [blame^] | 21 | RUN mv /usr/sbin/dhcpd /sbin/ |
| 22 | RUN ln -sf /sbin/dhcpd /usr/sbin/dhcpd |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 23 | WORKDIR /root |
| 24 | RUN wget -nc http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_2.5.dfsg-2.1_amd64.deb \ |
| 25 | http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/libbison-dev_2.5.dfsg-2.1_amd64.deb |
| 26 | RUN sudo dpkg -i bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb |
| 27 | RUN rm bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb |
| 28 | RUN wget -nc http://www.nbee.org/download/nbeesrc-jan-10-2013.zip && \ |
| 29 | unzip nbeesrc-jan-10-2013.zip && \ |
| 30 | cd nbeesrc-jan-10-2013/src && cmake . && make && \ |
| 31 | cp ../bin/libn*.so /usr/local/lib && ldconfig && \ |
| 32 | cp -R ../include/* /usr/include/ |
| 33 | WORKDIR /root |
| 34 | RUN git clone https://github.com/CPqD/ofsoftswitch13.git && \ |
| 35 | cd ofsoftswitch13 && \ |
| 36 | ./boot.sh && \ |
| 37 | ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && \ |
| 38 | make && make install |
| 39 | CMD ["/bin/bash"] |