blob: ec9c55921bc1a37bd8f3a95f0acb73f11b04ef07 [file] [log] [blame]
Matteo Scandolo48d3d2d2017-08-08 13:05:27 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
A.R Karthick490f51f2016-06-09 21:29:13 -070017FROM ubuntu:14.04
18MAINTAINER chetan@ciena.com
19RUN apt-get update && \
20 apt-get install -y git git-core autoconf automake autotools-dev pkg-config \
21 make gcc g++ libtool libc6-dev cmake libpcap-dev libxerces-c2-dev \
22 unzip libpcre3-dev flex bison libboost-dev \
23 python python-pip python-setuptools python-scapy tcpdump doxygen doxypy wget \
24 openvswitch-common openvswitch-switch \
A R Karthick07608ef2016-08-23 16:51:19 -070025 python-twisted python-sqlite sqlite3 python-pexpect telnet arping isc-dhcp-server \
Chetan Gaonkerd63a2372017-03-03 22:16:22 +000026 python-paramiko python-maas-client python-keystoneclient python-neutronclient python-glanceclient \
A R Karthickc28f6a92017-04-18 16:05:18 -070027 python-novaclient python-dev libffi-dev libssl-dev
A.R Karthick490f51f2016-06-09 21:29:13 -070028RUN easy_install nose
29RUN mkdir -p /root/ovs
30WORKDIR /root
31RUN wget http://openvswitch.org/releases/openvswitch-2.5.0.tar.gz -O /root/ovs/openvswitch-2.5.0.tar.gz && \
32(cd /root/ovs && tar zxpvf openvswitch-2.5.0.tar.gz && \
33 cd openvswitch-2.5.0 && \
34 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && make && make install)
35RUN service openvswitch-switch restart || /bin/true
A.R Karthickec5b72a2016-11-03 09:53:07 -070036RUN 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 -070037RUN pip install -U cryptography
38RUN pip install -U paramiko
A.R Karthick490f51f2016-06-09 21:29:13 -070039RUN mv /usr/sbin/tcpdump /sbin/
40RUN ln -sf /sbin/tcpdump /usr/sbin/tcpdump
A R Karthickf4999472016-07-01 16:42:13 -070041RUN mv /usr/sbin/dhcpd /sbin/
42RUN ln -sf /sbin/dhcpd /usr/sbin/dhcpd
A.R Karthickcaf82ac2017-04-17 17:45:24 -070043RUN mv /sbin/dhclient /usr/sbin/
44RUN ln -sf /usr/sbin/dhclient /sbin/dhclient
A.R Karthick490f51f2016-06-09 21:29:13 -070045WORKDIR /root
46RUN wget -nc http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/bison_2.5.dfsg-2.1_amd64.deb \
47 http://de.archive.ubuntu.com/ubuntu/pool/main/b/bison/libbison-dev_2.5.dfsg-2.1_amd64.deb
48RUN sudo dpkg -i bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb
49RUN rm bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb
50RUN wget -nc http://www.nbee.org/download/nbeesrc-jan-10-2013.zip && \
51 unzip nbeesrc-jan-10-2013.zip && \
52 cd nbeesrc-jan-10-2013/src && cmake . && make && \
53 cp ../bin/libn*.so /usr/local/lib && ldconfig && \
54 cp -R ../include/* /usr/include/
55WORKDIR /root
56RUN git clone https://github.com/CPqD/ofsoftswitch13.git && \
57 cd ofsoftswitch13 && \
58 ./boot.sh && \
59 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-ssl && \
60 make && make install
61CMD ["/bin/bash"]