Removed opendaylight build capabilities as a preparation toward Arno SR1
[genesis.git] / common / puppet-opnfv / manifests / templates / dockerfile / Dockerfile
1 ####################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
3 # daniel.smith@ericsson.com
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 #
10 #  DOCKERFILE TO CREATE ODL IN CONTAINER AND EXPOSE DLUX AND OVSDB TO ODL
11 #
12 #############################################################################
13
14
15 #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
16 FROM ubuntu:12.04
17
18 # Maintainer Info
19 MAINTAINER Daniel Smith
20
21
22 #Run apt-get update one start just to check for updates when building
23 RUN echo "Updating APT"
24 RUN apt-get update
25 RUN echo "Adding wget"
26 RUN apt-get install -y wget
27 RUN apt-get install -y net-tools
28 RUN apt-get install -y openjdk-7-jre
29 RUN apt-get install -y openjdk-7-jdk
30 RUN apt-get install -y openssh-server
31 RUN apt-get install -y vim
32 RUN apt-get install -y expect
33 RUN apt-get install -y daemontools
34 RUN mkdir -p /opt/odl_source
35 RUN bash -c 'echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64" >> ~/.bashrc'
36
37
38
39 #Now lets got and fetch the ODL distribution
40 RUN echo "Fetching ODL"
41 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
42
43 RUN echo "Untarring ODL inplace"
44 RUN mkdir -p /opt/odl
45 RUN tar zxvf /opt/odl_source/distribution-karaf-0.2.3-Helium-SR3.tar.gz -C /opt/odl
46
47 RUN echo "Installing DLUX and other features into ODL"
48 #COPY dockerfile/container_scripts/start_odl_docker.sh /etc/init.d/start_odl_docker.sh
49 COPY container_scripts/start_odl_docker_container.sh /etc/init.d/
50 COPY container_scripts/speak.sh /etc/init.d/
51 #COPY dockerfile/container_scripts/speak.sh /etc/init.d/speak.sh
52 RUN chmod 777 /etc/init.d/start_odl_docker_container.sh
53 RUN chmod 777 /etc/init.d/speak.sh
54
55
56
57 # Expose the ports
58
59 # PORTS FOR BASE SYSTEM AND DLUX
60 EXPOSE 8101
61 EXPOSE 6633
62 EXPOSE 1099
63 EXPOSE 43506
64 EXPOSE 8181
65 EXPOSE 8185
66 EXPOSE 9000
67 EXPOSE 39378
68 EXPOSE 33714
69 EXPOSE 44444
70 EXPOSE 6653
71
72 # PORTS FOR OVSDB AND ODL CONTROL
73 EXPOSE 12001
74 EXPOSE 6640
75 EXPOSE 8080
76 EXPOSE 7800
77 EXPOSE 55130
78 EXPOSE 52150
79 EXPOSE 36826
80
81 # set the ENTRYPOINT - An entry point allows us to run this container as an exectuable
82 CMD ["/etc/init.d/start_odl_docker_container.sh"]