Enable spacing linting, fix problems
[integration/packaging.git] / docker / centos / Dockerfile
1 # OpenDaylight Lithium 0.3.0 DockerFile
2 # Based on CentOS
3 # https://registry.hub.docker.com/_/centos/
4 FROM centos:7
5 MAINTAINER OpenDaylight Project <info@opendaylight.org>
6
7 # Add repo for ODL
8 ADD opendaylight-3-candidate.repo /etc/yum.repos.d/
9
10 # Install required software including OpenDaylight
11 RUN yum update -y && yum install -y opendaylight
12
13 # Setup Ports:
14
15 # TODO: Verify that these are all of the ODL Lithium ports
16 # Ports
17 # 162 - SNMP4SDN (only when started as root)
18 # 179 - BGP
19 # 1088 - JMX access
20 # 1790 - BGP/PCEP
21 # 1830 - Netconf
22 # 2400 - OSGi console
23 # 2550 - ODL Clustering
24 # 2551 - ODL Clustering
25 # 2552 - ODL Clustering
26 # 4189 - PCEP
27 # 4342 - Lisp Flow Mapping
28 # 5005 - JConsole
29 # 5666 - ODL Internal clustering RPC
30 # 6633 - OpenFlow
31 # 6640 - OVSDB
32 # 6653 - OpenFlow
33 # 7800 - ODL Clustering
34 # 8000 - Java debug access
35 # 8080 - OpenDaylight web portal
36 # 8101 - KarafSSH
37 # 8181 - MD-SAL RESTConf and DLUX
38 # 8383 - Netconf
39 # 12001 - ODL Clustering
40 EXPOSE 162 179 1088 1790 1830 2400 2550 2551 2552 4189 4342 5005 5666 6633 6640 6653 7800 8000 8080 8101 8181 8383 12001
41
42 # Start OpenDaylight
43 WORKDIR /opt/opendaylight
44 CMD ["./bin/karaf", "server"]