Matteo Scandolo | 48d3d2d | 2017-08-08 13:05:27 -0700 | [diff] [blame] | 1 | |
| 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 Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 17 | FROM ubuntu:14.04 |
| 18 | MAINTAINER chetan@ciena.com |
| 19 | RUN 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 Karthick | 07608ef | 2016-08-23 16:51:19 -0700 | [diff] [blame] | 25 | python-twisted python-sqlite sqlite3 python-pexpect telnet arping isc-dhcp-server \ |
Chetan Gaonker | d63a237 | 2017-03-03 22:16:22 +0000 | [diff] [blame] | 26 | python-paramiko python-maas-client python-keystoneclient python-neutronclient python-glanceclient \ |
A R Karthick | c28f6a9 | 2017-04-18 16:05:18 -0700 | [diff] [blame] | 27 | python-novaclient python-dev libffi-dev libssl-dev |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 28 | RUN easy_install nose |
| 29 | RUN mkdir -p /root/ovs |
| 30 | WORKDIR /root |
| 31 | RUN 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) |
| 35 | RUN service openvswitch-switch restart || /bin/true |
A.R Karthick | ec5b72a | 2016-11-03 09:53:07 -0700 | [diff] [blame] | 36 | RUN pip install scapy==2.3.2 scapy-ssl_tls==1.2.2 monotonic configObj docker-py pyyaml nsenter pyroute2 netaddr python-daemon |
A R Karthick | c28f6a9 | 2017-04-18 16:05:18 -0700 | [diff] [blame] | 37 | RUN pip install -U cryptography |
| 38 | RUN pip install -U paramiko |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 39 | RUN mv /usr/sbin/tcpdump /sbin/ |
| 40 | RUN ln -sf /sbin/tcpdump /usr/sbin/tcpdump |
A R Karthick | f499947 | 2016-07-01 16:42:13 -0700 | [diff] [blame] | 41 | RUN mv /usr/sbin/dhcpd /sbin/ |
| 42 | RUN ln -sf /sbin/dhcpd /usr/sbin/dhcpd |
A.R Karthick | caf82ac | 2017-04-17 17:45:24 -0700 | [diff] [blame] | 43 | RUN mv /sbin/dhclient /usr/sbin/ |
| 44 | RUN ln -sf /usr/sbin/dhclient /sbin/dhclient |
A.R Karthick | 490f51f | 2016-06-09 21:29:13 -0700 | [diff] [blame] | 45 | WORKDIR /root |
| 46 | RUN 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 |
| 48 | RUN sudo dpkg -i bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb |
| 49 | RUN rm bison_2.5.dfsg-2.1_amd64.deb libbison-dev_2.5.dfsg-2.1_amd64.deb |
| 50 | RUN 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/ |
| 55 | WORKDIR /root |
| 56 | RUN 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 |
| 61 | CMD ["/bin/bash"] |