Update unit tests for ODL Neon Release
[integration/packaging.git] / docker / debian / Dockerfile
index ac10d577ac78eaa52146a3a26746b11605cd0ceb..c9cb4f0eadf2ac195c3038fca65b9780531ccf20 100755 (executable)
@@ -1,47 +1,20 @@
-# OpenDaylight Lithium 0.3.0 DockerFile
-# Based on Debian
-# https://registry.hub.docker.com/_/debian/
 FROM debian:7
-MAINTAINER OpenDaylight Project <info@opendaylight.org>
 
-# Install required software (170MB)
-RUN apt-get update && apt-get install -y openjdk-7-jre-headless wget
+# Schema: https://github.com/projectatomic/ContainerApplicationGenericLabels
+LABEL name="Int/Pack Debian Dockerfile" \
+      version="5.2" \
+      vendor="OpenDaylight" \
+      summary="OpenDaylight Integration/Packaging example Debian Dockerfile" \
+      vcs-url="https://git.opendaylight.org/gerrit/p/integration/packaging.git"
 
-# Download and install ODL
-WORKDIR /opt
-RUN mkdir opendaylight
-# Doing all of these in one step reduces the resulting image size by 229MB
-RUN wget -q "https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.3.0-Lithium/distribution-karaf-0.3.0-Lithium.tar.gz" && \
-    tar -xf distribution-karaf-0.3.0-Lithium.tar.gz -C opendaylight --strip-components=1 && \
-    rm distribution-karaf-0.3.0-Lithium.tar.gz
+# Install OpenDaylight
+RUN apt-get install -y http://download.opensuse.org/repositories/home:/akshitajha/xUbuntu_16.04/all/opendaylight_5.0.0-1_all.deb && apt-get clean
 
-# 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
 
-WORKDIR /opt/opendaylight
-ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64/jre
-CMD ["./bin/karaf", "server"]
+# Start OpenDaylight
+CMD ["/opt/opendaylight/bin/karaf"]