Removed opendaylight build capabilities as a preparation toward Arno SR1
[genesis.git] / fuel / build / f_odl_docker / dockerfile / Dockerfile
1 ####################################################################
2 #
3 #   Dockerfile to build a ODL (Karaf) Docker Container
4 #
5 #   Copyright daniel.smith@ericsson.com
6 #   License: Apache GPL
7 #
8 ####################################################################
9
10
11 #Set the base image - note: the current release of Karaf is using Jdk7 and alot of 12.04, so we will use it rather than 14.04 and backport a ton of stuff
12 FROM ubuntu:12.04
13
14 # Maintainer Info
15 MAINTAINER Daniel Smith
16
17 #Run apt-get update one start just to check for updates when building
18 RUN echo "Updating APT"
19 RUN apt-get update
20 RUN echo "Adding wget"
21 RUN apt-get install -y wget
22 RUN apt-get install -y net-tools
23 RUN apt-get install -y openjdk-7-jre
24 RUN apt-get install -y openjdk-7-jdk
25 RUN apt-get install -y openssh-server
26 RUN apt-get install -y vim
27 RUN apt-get install -y expect
28 RUN apt-get install -y daemontools
29 RUN mkdir -p /opt/odl_source
30 RUN bash -c 'echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" >> ~/.bashrc'
31
32
33 #Now lets got and fetch the ODL distribution
34 RUN echo "Fetching ODL"
35 RUN wget https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.2.3-Helium-SR3/distribution-karaf-0.2.3-Helium-SR3.tar.gz -O /opt/odl_source/distribution-karaf-0.2.3-Helium-SR3.tar.gz
36
37 RUN echo "Untarring ODL inplace"
38 RUN mkdir -p /opt/odl
39 RUN tar zxvf /opt/odl_source/distribution-karaf-0.2.3-Helium-SR3.tar.gz -C /opt/odl
40
41 RUN echo "Installing DLUX and other features into ODL"
42 COPY tmp/dockerfile/container_scripts/start_odl_docker.sh /etc/init.d/start_odl_docker.sh
43 COPY tmp/dockerfile/container_scripts/speak.sh /etc/init.d/speak.sh
44 RUN chmod 777 /etc/init.d/start_odl_docker.sh
45 RUN chmod 777 /etc/init.d/speak.sh
46
47
48 # Expose the ports
49 # PORTS FOR BASE SYSTEM AND DLUX
50 EXPOSE 8101
51 EXPOSE 6633
52 EXPOSE 1099
53 EXPOSE 43506
54 EXPOSE 8181
55 EXPOSE 8185
56 EXPOSE 9000
57 EXPOSE 39378
58 EXPOSE 33714
59 EXPOSE 44444
60 EXPOSE 6653
61
62 # PORTS FOR OVSDB AND ODL CONTROL
63 EXPOSE 12001
64 EXPOSE 6640
65 EXPOSE 8080
66 EXPOSE 7800
67 EXPOSE 55130
68 EXPOSE 52150
69 EXPOSE 36826
70
71 # set the ENTRYPOINT - An entry point allows us to run this container as an exectuable
72 CMD ["/etc/init.d/start_odl_docker.sh"]