Add INFO.yaml for integration/packaging
[integration/packaging.git] / docker / centos / Dockerfile
index 0d0548acddcb2a8df45edef2d839bc29f510494b..6502266b6baf3113655a96325f781b6acf5657fc 100755 (executable)
@@ -1,44 +1,20 @@
-# OpenDaylight Lithium 0.3.0 DockerFile
-# Based on CentOS 
-# https://registry.hub.docker.com/_/centos/
 FROM centos:7
-MAINTAINER OpenDaylight Project <info@opendaylight.org>
 
-# Add repo for ODL
-ADD opendaylight-3-candidate.repo /etc/yum.repos.d/
+# Schema: https://github.com/projectatomic/ContainerApplicationGenericLabels
+LABEL name="Int/Pack CentOS Dockerfile" \
+      version="7.1" \
+      vendor="OpenDaylight" \
+      summary="OpenDaylight Integration/Packaging example CentOS Dockerfile" \
+      vcs-url="https://git.opendaylight.org/gerrit/p/integration/packaging.git"
 
-# Install required software including OpenDaylight
-RUN yum update -y && yum install -y opendaylight
+# Install OpenDaylight
+RUN yum install -y http://cbs.centos.org/repos/nfv7-opendaylight-71-release/x86_64/os/Packages/opendaylight-7.1.0-1.el7.noarch.rpm && yum clean all
 
-# Setup Ports:
-
-# TODO: Verify that these are all of the ODL Lithium ports
 # Ports
-# 162 - SNMP4SDN (only when started as root)
-# 179 - BGP
-# 1088 - JMX access
-# 1790 - BGP/PCEP
-# 1830 - Netconf
-# 2400 - OSGi console
-# 2550 - ODL Clustering
-# 2551 - ODL Clustering
-# 2552 - ODL Clustering
-# 4189 - PCEP
-# 4342 - Lisp Flow Mapping
-# 5005 - JConsole
-# 5666 - ODL Internal clustering RPC
-# 6633 - OpenFlow
-# 6640 - OVSDB
-# 6653 - OpenFlow
-# 7800 - ODL Clustering
-# 8000 - Java debug access
-# 8080 - OpenDaylight web portal
-# 8101 - KarafSSH
-# 8181 - MD-SAL RESTConf and DLUX
-# 8383 - Netconf
-# 12001 - ODL Clustering
-EXPOSE 162 179 1088 1790 1830 2400 2550 2551 2552 4189 4342 5005 5666 6633 6640 6653 7800 8000 8080 8101 8181 8383 12001
+# 8101 - Karaf SSH
+# Installing additional ODL features may require opening additional ports.
+# https://wiki.opendaylight.org/view/Ports
+EXPOSE 8101
 
 # Start OpenDaylight
-WORKDIR /opt/opendaylight
-CMD ["./bin/karaf", "server"]
+CMD ["/opt/opendaylight/bin/karaf"]