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