blob: 6cc827bd02459730c6d920eb4b31d2042b841f86 [file] [log] [blame]
FROM ubuntu:14.04
MAINTAINER chetan@ciena.com
RUN apt-get update && \
apt-get install -y git git-core autoconf automake autotools-dev pkg-config \
make gcc g++ libtool libc6-dev cmake libpcap-dev libxerces-c2-dev \
unzip libpcre3-dev flex bison libboost-dev \
python python-pip python-setuptools python-scapy tcpdump doxygen doxypy wget \
openvswitch-common openvswitch-switch \
python-twisted python-sqlite sqlite3 python-pexpect telnet arping
RUN easy_install nose
RUN mkdir -p /root/ovs
WORKDIR /root
RUN wget http://openvswitch.org/releases/openvswitch-2.5.0.tar.gz -O /root/ovs/openvswitch-2.5.0.tar.gz && \
(cd /root/ovs && tar zxpvf openvswitch-2.5.0.tar.gz && \
cd openvswitch-2.5.0 && \
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && make && make install)
RUN service openvswitch-switch restart || /bin/true
RUN pip install -U scapy scapy-ssl_tls monotonic configObj docker-py pyyaml nsenter pyroute2 netaddr python-daemon
RUN mv /usr/sbin/tcpdump /sbin/
RUN ln -sf /sbin/tcpdump /usr/sbin/tcpdump
WORKDIR /root
RUN wget -nc http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_2.5.dfsg-2.1_amd64.deb \
http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/libbison-dev_2.5.dfsg-2.1_amd64.deb
RUN sudo dpkg -i bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb
RUN rm bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb
RUN wget -nc http://www.nbee.org/download/nbeesrc-jan-10-2013.zip && \
unzip nbeesrc-jan-10-2013.zip && \
cd nbeesrc-jan-10-2013/src && cmake . && make && \
cp ../bin/libn*.so /usr/local/lib && ldconfig && \
cp -R ../include/* /usr/include/
WORKDIR /root
RUN git clone https://github.com/CPqD/ofsoftswitch13.git && \
cd ofsoftswitch13 && \
./boot.sh && \
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && \
make && make install
CMD ["/bin/bash"]