blob: 26ddf33bd6aa3be07665c5a994668026b31940de [file] [log] [blame]
A.R Karthick490f51f2016-06-09 21:29:13 -07001FROM ubuntu:14.04
2MAINTAINER chetan@ciena.com
3RUN 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 Karthick8cf29ac2016-06-30 16:25:14 -07009 python-twisted python-sqlite sqlite3 python-pexpect telnet arping isc-dhcp-server
A.R Karthick490f51f2016-06-09 21:29:13 -070010RUN easy_install nose
11RUN mkdir -p /root/ovs
12WORKDIR /root
13RUN 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)
17RUN service openvswitch-switch restart || /bin/true
A R Karthick81acbff2016-06-17 14:45:16 -070018RUN pip install -U scapy scapy-ssl_tls monotonic configObj docker-py pyyaml nsenter pyroute2 netaddr python-daemon
A.R Karthick490f51f2016-06-09 21:29:13 -070019RUN mv /usr/sbin/tcpdump /sbin/
20RUN ln -sf /sbin/tcpdump /usr/sbin/tcpdump
21WORKDIR /root
22RUN wget -nc http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_2.5.dfsg-2.1_amd64.deb \
23 http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/libbison-dev_2.5.dfsg-2.1_amd64.deb
24RUN sudo dpkg -i bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb
25RUN rm bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb
26RUN wget -nc http://www.nbee.org/download/nbeesrc-jan-10-2013.zip && \
27 unzip nbeesrc-jan-10-2013.zip && \
28 cd nbeesrc-jan-10-2013/src && cmake . && make && \
29 cp ../bin/libn*.so /usr/local/lib && ldconfig && \
30 cp -R ../include/* /usr/include/
31WORKDIR /root
32RUN git clone https://github.com/CPqD/ofsoftswitch13.git && \
33 cd ofsoftswitch13 && \
34 ./boot.sh && \
35 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && \
36 make && make install
37CMD ["/bin/bash"]