blob: 6a174a8d485cd38281529cdf7de59a444d939803 [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 Karthick07608ef2016-08-23 16:51:19 -07009 python-twisted python-sqlite sqlite3 python-pexpect telnet arping isc-dhcp-server \
Chetan Gaonkerd63a2372017-03-03 22:16:22 +000010 python-paramiko python-maas-client python-keystoneclient python-neutronclient python-glanceclient \
A R Karthickc28f6a92017-04-18 16:05:18 -070011 python-novaclient python-dev libffi-dev libssl-dev
A.R Karthick490f51f2016-06-09 21:29:13 -070012RUN easy_install nose
13RUN mkdir -p /root/ovs
14WORKDIR /root
15RUN 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)
19RUN service openvswitch-switch restart || /bin/true
A.R Karthickec5b72a2016-11-03 09:53:07 -070020RUN pip install scapy==2.3.2 scapy-ssl_tls==1.2.2 monotonic configObj docker-py pyyaml nsenter pyroute2 netaddr python-daemon
A R Karthickc28f6a92017-04-18 16:05:18 -070021RUN pip install -U cryptography
22RUN pip install -U paramiko
A.R Karthick490f51f2016-06-09 21:29:13 -070023RUN mv /usr/sbin/tcpdump /sbin/
24RUN ln -sf /sbin/tcpdump /usr/sbin/tcpdump
A R Karthickf4999472016-07-01 16:42:13 -070025RUN mv /usr/sbin/dhcpd /sbin/
26RUN ln -sf /sbin/dhcpd /usr/sbin/dhcpd
A.R Karthickcaf82ac2017-04-17 17:45:24 -070027RUN mv /sbin/dhclient /usr/sbin/
28RUN ln -sf /usr/sbin/dhclient /sbin/dhclient
A.R Karthick490f51f2016-06-09 21:29:13 -070029WORKDIR /root
30RUN wget -nc http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_2.5.dfsg-2.1_amd64.deb \
31 http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/libbison-dev_2.5.dfsg-2.1_amd64.deb
32RUN sudo dpkg -i bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb
33RUN rm bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb
34RUN wget -nc http://www.nbee.org/download/nbeesrc-jan-10-2013.zip && \
35 unzip nbeesrc-jan-10-2013.zip && \
36 cd nbeesrc-jan-10-2013/src && cmake . && make && \
37 cp ../bin/libn*.so /usr/local/lib && ldconfig && \
38 cp -R ../include/* /usr/include/
39WORKDIR /root
40RUN git clone https://github.com/CPqD/ofsoftswitch13.git && \
41 cd ofsoftswitch13 && \
42 ./boot.sh && \
43 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && \
44 make && make install
45CMD ["/bin/bash"]