Updated Docker packaging for Helium.
authorDaniel Farrell <dfarrell@redhat.com>
Sat, 18 Oct 2014 01:32:25 +0000 (21:32 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 24 Oct 2014 15:38:24 +0000 (11:38 -0400)
- Removed old base/vert/service provider builds
- Created Helium Dockerfile
- Updated README

Change-Id: I5cd60ab5955295d4d31e9ba1cd4f21434ad4e509
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
12 files changed:
packaging/docker/Dockerfile [new file with mode: 0644]
packaging/docker/README.md
packaging/docker/base/Dockerfile [deleted file]
packaging/docker/base/pom.xml [deleted file]
packaging/docker/pom.xml [deleted file]
packaging/docker/release/base/Dockerfile [deleted file]
packaging/docker/release/serviceprovider/Dockerfile [deleted file]
packaging/docker/release/virtualization/Dockerfile [deleted file]
packaging/docker/serviceprovider/Dockerfile [deleted file]
packaging/docker/serviceprovider/pom.xml [deleted file]
packaging/docker/virtualization/Dockerfile [deleted file]
packaging/docker/virtualization/pom.xml [deleted file]

diff --git a/packaging/docker/Dockerfile b/packaging/docker/Dockerfile
new file mode 100644 (file)
index 0000000..538d20a
--- /dev/null
@@ -0,0 +1,45 @@
+# Base the image on Debian 7
+# Picked Debian because it's small
+# https://registry.hub.docker.com/_/debian/
+FROM debian:7
+MAINTAINER OpenDaylight Project <info@opendaylight.org>
+
+# Install required software
+RUN apt-get update && apt-get install -y openjdk-7-jre-headless wget
+
+# Download and install ODL
+WORKDIR /opt
+RUN wget -q "http://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.2.0-Helium/distribution-karaf-0.2.0-Helium.tar.gz"
+RUN mkdir opendaylight
+RUN tar -xf distribution-karaf-0.2.0-Helium.tar.gz -C opendaylight --strip-components=1
+RUN rm -rf distribution-karaf-0.2.0-Helium.tar.gz
+
+# TODO: Verify that these are all of the ODL Helium ports and no extra
+# 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
+
+WORKDIR /opt/opendaylight
+CMD ["./bin/karaf", "server"]
index 8c3bd6ca5248981d1b6732f15b9b1fd998c92c05..8b42bd24ed065a4c4a572078d13ec8f111773294 100644 (file)
-What is Docker
-==============
-Docker, provided by [docker.io](http://docker.io), and available in most Linux distributions as well as available on MacOS and Windows, is an open-source project to easily create lightweight, portable, self-sufficient containers from any application. The same container that a developer builds and tests on a laptop can run at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more.
-
-_For more information on docker please read [docker.io's documentation](http://docker.io)._ 
-
-<a name="sudo"></a>The sudo command and the docker Group
-=====================================
-(reprinted from [docker.io's basic documentation](http://docs.docker.io/en/latest/use/basics/)):
-
-The docker daemon always runs as the root user, and since Docker version 0.5.2, the docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root, and so, by default, you can access it with sudo.
-
-Starting in version 0.5.3, if you (or your Docker installer) create a Unix group called docker and add users to it, then the docker daemon will make the ownership of the Unix socket read/writable by the docker group when the daemon starts. The docker daemon must always run as the root user, but if you run the docker client as a user in the docker group then you don’t need to add sudo to all the client commands.
-
-<a name="images"></a>OpenDaylight Docker Images
-==========================
-The `Dockerfile`s in these directories can be used to construct a docker image for an OpenDaylight SDN controller. These Dockerfiles rely on the presense of an OpenDaylight distribution in the sub-directory `target/dist`. The distribution should be a `ZIP` file as generated by an OpenDaylight source build or as downloaded from the [OpenDaylight Nexus server](https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/integration).
-
-<a name="prebuilt"></a>Pre-built Image
-===============
-If you would like to use the OpenDaylight SDN controller as a docker image, but do not wish to build the image yourself. There are public images available via the public docker respository. You can find the images by issuing a docker search command looking for __opendaylight__ i.e.
-
-    $ docker search opendaylight
-    Found 3 results matching your query ("opendaylight")
-    NAME                             DESCRIPTION
-    opendaylight/base                The base OpenDaylight SDN controlelr
-    opendaylight/serviceprovider     The service provider version of the OpenDaylight SDN controller
-    opendaylight/virtualization      The virtualization version of the OpenDaylight SDN controller
-
-Each of these images have version tags that allow the sepecification of the version via the version name. `latest` is also a support tag to identify the latest offical release. For the first release of OpenDaylight, the version tag is "hydrogen".
-
-<a name="building"></a>Build Image
-===========
-If you would like to build the image manually then this can be done by performing a `mvn install` command from the top of the OpenDaylight docker module `integration/packaging/docker` or in the sub-directory for the edition in which you are interested, i.e., `integration/packaging/docker/base`. This will retrieve the latest artifacts from your local maven repository and copy them to the `target/dist` sub-directory in the associated edition directories in preparation to build the docker images.
-
-Once the distribution `ZIP` file is in the `target/dist` sub-directory the image can be built from the edition sub-directories using with the following command:
-
-    docker build -t="<respository>/<name>:<tag>" -rm .
-
-When issuing this command you can replace the the `<repository>/<name>:<tag>` values with any name you would like, or none if you wish to only using the generated image identifiers. As an exmaple:
-
-    docker build -t="joeuser/opendaylight:mytag" -rm .
-
-More information about the docker build command can be found at [docker.io's documenation page](http://docs.docker.io/en/latest/commandline/cli/#cli-build).
-
-<a name="release"></a>Release Images
-==============
-In the `release` sub-directory, additional Dockerfiles are located. These Dockerfiles can be used to build a docker image by directly downloading the distribution files from the OpenDaylight Nexus repository. These are the files that are used to build the official images that are published to the [docker.io public repository](index.docker.io).
-
-The following command can be used to build images using these files:
-
-    docker build -rm - < Dockerfile.<edition>
-
-<a name="use"></a>Using the Image
-===============
-The OpenDaylight docker image is meant to be used to start an instance of the OpenDaylight SDN controller and that process will be invoked when the docker image is __run__. Any command line options you append to the `docker run` command will be passed on to the the OpenDaylight `run.sh` startup script. In its simpliest form you can invoke an instance of the Opendaylight controller using the command:
-
-    docker run -d <image-identifier> 
-
-Where `<image-identifier>` can be one of the pre-build image references, i.e. `opendaylight/base:hydrogen`, or it can reference the docker image you may have created using the `Dockerfile` and the `docker build` command.
-
-Additional information and options for _running_ a docker image can be found at [docker.io's run documentation](http://docs.docker.io/en/latest/commandline/cli/#run).
-
-Ports
------
-The OpenDaylight controller image will expose the following ports from the container to the host system:
-
-+ 1088 - JMX access
-+ 1830 - Netconf use 
-+ 2400 - OSGi console
-+ 4342 - Lisp Flow Mapping (for Service Provider Edition only)
-+ 5666 - ODL Internal clustering RPC
-+ 6633 - OpenFlow use
-+ 7800 - ODL Clustering
-+ 8000 - Java debug access
-+ 8080 - OpenDaylight web portal
-+ 8383 - Netconf use
-+ 12001 - ODL Clustering
-
-By default these ports will be mapped to random ports on the host system (i.e. the system on which the `docker run` command is invoked). The mappings can be discovered using the `docker ps` command. To understand how to enable docker container instances to communicate without having to _hard wire_ the port information see [docker.io's documentation on linking](http://docs.docker.io/en/latest/use/working_with_links_names/).
-
-If you wish to map these ports to specific port numbers on the host system, this can be accomplished as command line options to the `docker run` command using the _port map_ option specified using the `-p` option. The syntax for this option is documented in [docker.io's run documentation](http://docs.docker.io/en/latest/commandline/cli/#run), but is essentially `-p <host-port>:<container-port>`.
-
-<a name="clustering"></a>Clustering
-===========
-OpenDaylight supports the concept of [clustering](https://wiki.opendaylight.org/view/OpenDaylight_Controller:Programmer_Guide:Clustering) using a command line option [`-Dsupernodes`](https://wiki.opendaylight.org/view/OpenDaylight_Controller:Clustering:HowTo) to support high availability. 
-
-The docker images can be used to set up a cluster on a single docker server (host) using the [docker naming and linking capability](http://blog.docker.io/2013/10/docker-0-6-5-links-container-naming-advanced-port-redirects-host-integration/) along with some modifications that were made to the OpenDaylight's processing of the `supernodes` host specifications. 
-
-_NOTE: The cluster configuraiton setup described in this document does not work for containers that are running on separate hosts. Supporting clustering using docker images across hosts is an advanced topic that relies on setting up virtual networks between the containers and is beyond the scope of this introduction._
-
-To support docker based clustering the syntax of the `supernodes` parameter has been extended. The important changes are:
-
-+ `+self` - interpreted as a reference to the local host's address (not 127.0.0.1) and will be resolved to an IP address through the environment variable `HOSTNAME`.
-+ `+<name>` - interpreted as a reference to another container, `<name>`, and will be resolved using the environment variables defined by docker when the `-link` command line option is used
-
-It is important to note that these extensions will only be used if OpenDaylight determines that it is running inside a container. This is determined by the value of the environment variable `container` being set to `lxc`.
-
-All values not prefixed by a `+` will be interpreted normally.
-
-Below is an example of starting up a three node cluster using this syntax:
-
-    $ docker run -d -name node1 opendaylight/base:hydrogen -Dsupernodes=+self
-    a8435cc23e13cb4e04c3c9788789e7e831af61c735d14a33025b3dd6c76e2938
-    $ docker run -d -name node2 -link node1:n1 d44fd77ebbdf -Dsupernodes=+self:+n1
-    fa0b37dfd216291e36fd645a345751a1a6079123c99d75326a5775dce8414a93
-    $ docker run -d -name node3 -link node1:n1 d44fd77ebbdf -Dsupernodes=+self:+n1
-    9ad6874aa85cad29736030239baf836f46ceb0c242baf873ab455674040d96b1
-
-The cluster can be verified through the OpenDaylight user interface. This can be accomplished by first determining the IP address of one of the nodes:
-
-    $ docker inspect -format='{{.NetworkSettings.IPAddress}}' node1
-    172.17.0.46
-
-After determining the IP address you can view the web interface by typing `http://172.17.0.46:8080` in the browser address bar, authenticating with the default user name and password (`admin/admin`), and then viewing the cluster information by selecting `Cluster` from the right hand drop down menu. A popup window should be displayed that shows all the nodes in the cluster with the master marked with a `C` and the node to which you are currently connected marked with a `*` (astericks).
-
+### OpenDaylight Docker Images
+The `Dockerfile` in this directory can be used to construct a Docker image for the OpenDaylight SDN controller. The current OpenDaylight version is [Helium](http://www.opendaylight.org/software/downloads/helium). Note that Helium uses Karaf to install features, and that the Docker image doesn't install any features by default. You'll need to choose which features to install based on your use-case.
+
+### OpenDaylight on DockerHub
+A pre-built OpenDaylight Helium image is available on DockerHub. You can find it with `docker search opendaylight`:
+
+TODO: Show example once ODL Helium image is on DockerHub
+
+You can then pull it to your local system with `docker pull opendaylight/helium`:
+
+TODO: Show example once ODL Helium image is on DockerHub
+
+### Using the Image
+To run commands against Dockerized OpenDaylight, use `docker run`. `WORKDIR` is set to the root of ODL's install directory, `/opt/opendaylight`. Commands passed to `docker run` should be relative to that path.
+
+Additional information about running Docker images can be found [here](https://docs.docker.com/reference/run/).
+
+### Ports
+OpenDaylight Helium will expose subsets of the following ports. The actual set of exposed ports for a given controller is determined by the features installed via Karaf.
+
+TODO: Verify that these are all of the ODL Helium ports and no extra
+
+* 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
+
+By default these ports will be mapped to random ports on the host system. The mappings can be discovered using the `docker ps` command. 
+
+If you wish to map these ports to specific ports on the host system, use the `-p <host-port>:<container-port>` flag with `docker run`. Note that [container linking](https://docs.docker.com/userguide/dockerlinks/) is generally recommend over hard-wiring ports with `-p`.
diff --git a/packaging/docker/base/Dockerfile b/packaging/docker/base/Dockerfile
deleted file mode 100644 (file)
index d7190a4..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-FROM ubuntu:12.04
-MAINTAINER OpenDaylight Project <info@opendaylight.org>
-
-# If the precise main universe repo is not already in the apt source list, then add it
-RUN if [ \! -f "/etc/apt/sources.list" -o `grep "deb http://archive.ubuntu.com/ubuntu precise main universe" /etc/apt/sources.list | wc -l` -eq 0 ]; then echo "deb http://archive.ubuntu.com/ubuntu precise main universe" >> /etc/apt/sources.list; fi
-
-# Remove the cache information. This helps eliminate "hash sum" errors when doing an update
-# which may be caused when mirrors and caches are out of sync.
-RUN rm -fR /var/lib/apt/lists/*
-RUN mkdir /var/lib/apt/lists/partial
-
-# Update the apt information
-RUN apt-get update
-
-# Install OpenJDK 7 in headless mode
-RUN apt-get -y install openjdk-7-jre-headless unzip wget
-RUN apt-get clean
-
-# Download and Install OpenDaylight
-RUN mkdir -p /opt/
-ADD target/dist /opt/
-RUN unzip /opt/*.zip -d /opt
-RUN rm -rf /opt/*.zip
-# Ports 
-#    JMX:                  1088
-#    Netconf:              1830
-#    OSGi Console:         2400
-#    Lisp Flow Mapping:    4342 # Service Provider Version
-#    Internal Cluster RPC  5666
-#    OpenFlow:             6633
-#    ODL Clustering        7800
-#    [default] Java Debug: 8000
-#    ODL Web Portal:       8080
-#    Netconf:              8383
-#    ODL Clustering        12001
-EXPOSE 1088 1830 2400 5666 6633 7800 8000 8080 8383 12001
-WORKDIR /opt/opendaylight
-ENTRYPOINT ["/opt/opendaylight/run.sh"]
\ No newline at end of file
diff --git a/packaging/docker/base/pom.xml b/packaging/docker/base/pom.xml
deleted file mode 100644 (file)
index eab43b7..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-  <modelVersion>4.0.0</modelVersion>
-  <prerequisites>
-    <maven>3.0</maven>
-  </prerequisites>
-  <parent>
-    <groupId>org.opendaylight.integration</groupId>
-    <artifactId>docker</artifactId>
-    <version>0.2.0-SNAPSHOT</version>
-    <relativePath>../</relativePath>
-  </parent>
-  <artifactId>docker-base</artifactId>
-  <name>OpenDaylight Docker Base Edition Project</name>
-  <packaging>pom</packaging>
-   <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-dependency-plugin</artifactId>
-        <version>2.8</version>
-        <executions>
-          <execution>
-            <id>copy-dependencies</id>
-            <phase>package</phase>
-            <goals>
-              <goal>copy</goal>
-            </goals>
-            <configuration>
-              <artifactItems>
-                <artifactItem>
-                  <groupId>org.opendaylight.integration</groupId>
-                  <artifactId>distributions-base</artifactId>
-                  <version>${project.version}</version>
-                  <type>zip</type>
-                  <classifier>osgipackage</classifier>
-                  <overWrite>true</overWrite>
-                  <outputDirectory>${project.build.directory}/dist</outputDirectory>
-                </artifactItem>
-              </artifactItems>
-              <!-- other configurations here -->
-              <overWriteReleases>false</overWriteReleases>
-              <overWriteSnapshots>false</overWriteSnapshots>
-              <overWriteIfNewer>true</overWriteIfNewer>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/packaging/docker/pom.xml b/packaging/docker/pom.xml
deleted file mode 100644 (file)
index b359992..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-  <modelVersion>4.0.0</modelVersion>
-  <prerequisites>
-    <maven>3.0</maven>
-  </prerequisites>
-  <groupId>org.opendaylight.integration</groupId>
-  <artifactId>docker</artifactId>
-  <version>0.2.0-SNAPSHOT</version>
-  <name>OpenDaylight Docker Project</name>
-  <packaging>pom</packaging>
-  <modules>
-    <module>base</module>
-    <module>serviceprovider</module>
-    <module>virtualization</module>
-  </modules>
-</project>
diff --git a/packaging/docker/release/base/Dockerfile b/packaging/docker/release/base/Dockerfile
deleted file mode 100644 (file)
index aa3bc20..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-FROM ubuntu:12.04
-MAINTAINER OpenDaylight Project <info@opendaylight.org>
-
-# If the precise main universe repo is not already in the apt source list, then add it
-RUN if [ \! -f "/etc/apt/sources.list" -o `grep "deb http://archive.ubuntu.com/ubuntu precise main universe" /etc/apt/sources.list | wc -l` -eq 0 ]; then echo "deb http://archive.ubuntu.com/ubuntu precise main universe" >> /etc/apt/sources.list; fi
-
-# Remove the cache information. This helps eliminate "hash sum" errors when doing an update
-# which may be caused when mirrors and caches are out of sync.
-RUN rm -fR /var/lib/apt/lists/*
-RUN mkdir /var/lib/apt/lists/partial
-
-# Update the apt information
-RUN apt-get update
-
-# Install OpenJDK 7 in headless mode
-RUN apt-get -y install openjdk-7-jre-headless unzip wget
-RUN apt-get clean
-
-# Download and Install OpenDaylight
-RUN mkdir -p /opt/
-RUN wget -q -O /opt/distribution.zip "https://nexus.opendaylight.org/service/local/artifact/maven/content?r=opendaylight.release&g=org.opendaylight.integration&a=distributions-base&v=0.1.1&c=osgipackage&p=zip"
-RUN unzip /opt/*.zip -d /opt
-RUN rm -rf /opt/*.zip
-# Ports 
-#    JMX:                  1088
-#    Netconf:              1830
-#    OSGi Console:         2400
-#    Lisp Flow Mapping:    4342 # Service Provider Version
-#    Internal Cluster RPC  5666
-#    OpenFlow:             6633
-#    ODL Clustering        7800
-#    [default] Java Debug: 8000
-#    ODL Web Portal:       8080
-#    Netconf:              8383
-#    ODL Clustering        12001
-EXPOSE 1088 1830 2400 5666 6633 7800 8000 8080 8383 12001
-WORKDIR /opt/opendaylight
-ENTRYPOINT ["/opt/opendaylight/run.sh"]
diff --git a/packaging/docker/release/serviceprovider/Dockerfile b/packaging/docker/release/serviceprovider/Dockerfile
deleted file mode 100644 (file)
index 186be14..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-FROM ubuntu:12.04
-MAINTAINER OpenDaylight Project <info@opendaylight.org>
-
-# If the precise main universe repo is not already in the apt source list, then add it
-RUN if [ \! -f "/etc/apt/sources.list" -o `grep "deb http://archive.ubuntu.com/ubuntu precise main universe" /etc/apt/sources.list | wc -l` -eq 0 ]; then echo "deb http://archive.ubuntu.com/ubuntu precise main universe" >> /etc/apt/sources.list; fi
-
-# Remove the cache information. This helps eliminate "hash sum" errors when doing an update
-# which may be caused when mirrors and caches are out of sync.
-RUN rm -fR /var/lib/apt/lists/*
-RUN mkdir /var/lib/apt/lists/partial
-
-# Update the apt information
-RUN apt-get update
-
-# Install OpenJDK 7 in headless mode
-RUN apt-get -y install openjdk-7-jre-headless unzip wget
-RUN apt-get clean
-
-# Download and Install OpenDaylight
-RUN mkdir -p /opt/
-RUN wget -q -O /opt/distribution.zip "https://nexus.opendaylight.org/service/local/artifact/maven/content?r=opendaylight.release&g=org.opendaylight.integration&a=distributions-serviceprovider&v=0.1.1&c=osgipackage&p=zip"
-RUN unzip /opt/*.zip -d /opt
-RUN rm -rf /opt/*.zip
-# Ports 
-#    JMX:                  1088
-#    Netconf:              1830
-#    OSGi Console:         2400
-#    Lisp Flow Mapping:    4342 # Service Provider Version
-#    Internal Cluster RPC  5666
-#    OpenFlow:             6633
-#    ODL Clustering        7800
-#    [default] Java Debug: 8000
-#    ODL Web Portal:       8080
-#    Netconf:              8383
-#    ODL Clustering        12001
-EXPOSE 1088 1830 2400 4342 5666 6633 7800 8000 8080 8383 12001
-WORKDIR /opt/opendaylight
-ENTRYPOINT ["/opt/opendaylight/run.sh"]
diff --git a/packaging/docker/release/virtualization/Dockerfile b/packaging/docker/release/virtualization/Dockerfile
deleted file mode 100644 (file)
index 955599a..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-FROM ubuntu:12.04
-MAINTAINER OpenDaylight Project <info@opendaylight.org>
-
-# If the precise main universe repo is not already in the apt source list, then add it
-RUN if [ \! -f "/etc/apt/sources.list" -o `grep "deb http://archive.ubuntu.com/ubuntu precise main universe" /etc/apt/sources.list | wc -l` -eq 0 ]; then echo "deb http://archive.ubuntu.com/ubuntu precise main universe" >> /etc/apt/sources.list; fi
-
-# Remove the cache information. This helps eliminate "hash sum" errors when doing an update
-# which may be caused when mirrors and caches are out of sync.
-RUN rm -fR /var/lib/apt/lists/*
-RUN mkdir /var/lib/apt/lists/partial
-
-# Update the apt information
-RUN apt-get update
-
-# Install OpenJDK 7 in headless mode
-RUN apt-get -y install openjdk-7-jre-headless unzip wget
-RUN apt-get clean
-
-# Download and Install OpenDaylight
-RUN mkdir -p /opt/
-RUN wget -q -O /opt/distribution.zip "https://nexus.opendaylight.org/service/local/artifact/maven/content?r=opendaylight.release&g=org.opendaylight.integration&a=distributions-virtualization&v=0.1.1&c=osgipackage&p=zip"
-RUN unzip /opt/*.zip -d /opt
-RUN rm -rf /opt/*.zip
-# Ports 
-#    JMX:                  1088
-#    Netconf:              1830
-#    OSGi Console:         2400
-#    Lisp Flow Mapping:    4342 # Service Provider Version
-#    Internal Cluster RPC  5666
-#    OpenFlow:             6633
-#    ODL Clustering        7800
-#    [default] Java Debug: 8000
-#    ODL Web Portal:       8080
-#    Netconf:              8383
-#    ODL Clustering        12001
-EXPOSE 1088 1830 2400 5666 6633 7800 8000 8080 8383 12001
-WORKDIR /opt/opendaylight
-ENTRYPOINT ["/opt/opendaylight/run.sh"]
diff --git a/packaging/docker/serviceprovider/Dockerfile b/packaging/docker/serviceprovider/Dockerfile
deleted file mode 100644 (file)
index 3ec0fda..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-FROM ubuntu:12.04
-MAINTAINER OpenDaylight Project <info@opendaylight.org>
-
-# If the precise main universe repo is not already in the apt source list, then add it
-RUN if [ \! -f "/etc/apt/sources.list" -o `grep "deb http://archive.ubuntu.com/ubuntu precise main universe" /etc/apt/sources.list | wc -l` -eq 0 ]; then echo "deb http://archive.ubuntu.com/ubuntu precise main universe" >> /etc/apt/sources.list; fi
-
-# Remove the cache information. This helps eliminate "hash sum" errors when doing an update
-# which may be caused when mirrors and caches are out of sync.
-RUN rm -fR /var/lib/apt/lists/*
-RUN mkdir /var/lib/apt/lists/partial
-
-# Update the apt information
-RUN apt-get update
-
-# Install OpenJDK 7 in headless mode
-RUN apt-get -y install openjdk-7-jre-headless unzip wget
-RUN apt-get clean
-
-# Download and Install OpenDaylight
-RUN mkdir -p /opt/
-ADD target/dist /opt/
-RUN unzip /opt/*.zip -d /opt
-RUN rm -rf /opt/*.zip
-# Ports 
-#    JMX:                  1088
-#    Netconf:              1830
-#    OSGi Console:         2400
-#    Lisp Flow Mapping:    4342 # Service Provider Version
-#    Internal Cluster RPC  5666
-#    OpenFlow:             6633
-#    ODL Clustering        7800
-#    [default] Java Debug: 8000
-#    ODL Web Portal:       8080
-#    Netconf:              8383
-#    ODL Clustering        12001
-EXPOSE 1088 1830 2400 4342 5666 6633 7800 8000 8080 8383 12001
-WORKDIR /opt/opendaylight
-ENTRYPOINT ["/opt/opendaylight/run.sh"]
\ No newline at end of file
diff --git a/packaging/docker/serviceprovider/pom.xml b/packaging/docker/serviceprovider/pom.xml
deleted file mode 100644 (file)
index 52c87ae..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-  <modelVersion>4.0.0</modelVersion>
-  <prerequisites>
-    <maven>3.0</maven>
-  </prerequisites>
-  <groupId>org.opendaylight.integration</groupId>
-  <artifactId>docker-serviceprovider</artifactId>
-  <version>0.2.0-SNAPSHOT</version>
-  <name>OpenDaylight Docker Service Provider Edition Project</name>
-  <packaging>pom</packaging>
-   <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-dependency-plugin</artifactId>
-        <version>2.8</version>
-        <executions>
-          <execution>
-            <id>copy-dependencies</id>
-            <phase>package</phase>
-            <goals>
-              <goal>copy</goal>
-            </goals>
-            <configuration>
-              <artifactItems>
-                <artifactItem>
-                  <groupId>org.opendaylight.integration</groupId>
-                  <artifactId>distributions-serviceprovider</artifactId>
-                  <version>${project.version}</version>
-                  <type>zip</type>
-                  <classifier>osgipackage</classifier>
-                  <overWrite>true</overWrite>
-                  <outputDirectory>${project.build.directory}/dist</outputDirectory>
-                </artifactItem>
-              </artifactItems>
-              <!-- other configurations here -->
-              <overWriteReleases>false</overWriteReleases>
-              <overWriteSnapshots>false</overWriteSnapshots>
-              <overWriteIfNewer>true</overWriteIfNewer>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/packaging/docker/virtualization/Dockerfile b/packaging/docker/virtualization/Dockerfile
deleted file mode 100644 (file)
index d7190a4..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-FROM ubuntu:12.04
-MAINTAINER OpenDaylight Project <info@opendaylight.org>
-
-# If the precise main universe repo is not already in the apt source list, then add it
-RUN if [ \! -f "/etc/apt/sources.list" -o `grep "deb http://archive.ubuntu.com/ubuntu precise main universe" /etc/apt/sources.list | wc -l` -eq 0 ]; then echo "deb http://archive.ubuntu.com/ubuntu precise main universe" >> /etc/apt/sources.list; fi
-
-# Remove the cache information. This helps eliminate "hash sum" errors when doing an update
-# which may be caused when mirrors and caches are out of sync.
-RUN rm -fR /var/lib/apt/lists/*
-RUN mkdir /var/lib/apt/lists/partial
-
-# Update the apt information
-RUN apt-get update
-
-# Install OpenJDK 7 in headless mode
-RUN apt-get -y install openjdk-7-jre-headless unzip wget
-RUN apt-get clean
-
-# Download and Install OpenDaylight
-RUN mkdir -p /opt/
-ADD target/dist /opt/
-RUN unzip /opt/*.zip -d /opt
-RUN rm -rf /opt/*.zip
-# Ports 
-#    JMX:                  1088
-#    Netconf:              1830
-#    OSGi Console:         2400
-#    Lisp Flow Mapping:    4342 # Service Provider Version
-#    Internal Cluster RPC  5666
-#    OpenFlow:             6633
-#    ODL Clustering        7800
-#    [default] Java Debug: 8000
-#    ODL Web Portal:       8080
-#    Netconf:              8383
-#    ODL Clustering        12001
-EXPOSE 1088 1830 2400 5666 6633 7800 8000 8080 8383 12001
-WORKDIR /opt/opendaylight
-ENTRYPOINT ["/opt/opendaylight/run.sh"]
\ No newline at end of file
diff --git a/packaging/docker/virtualization/pom.xml b/packaging/docker/virtualization/pom.xml
deleted file mode 100644 (file)
index 464b988..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-  <modelVersion>4.0.0</modelVersion>
-  <prerequisites>
-    <maven>3.0</maven>
-  </prerequisites>
-  <groupId>org.opendaylight.integration</groupId>
-  <artifactId>docker-virtualization</artifactId>
-  <version>0.2.0-SNAPSHOT</version>
-  <name>OpenDaylight Docker Virtualization Edition Project</name>
-  <packaging>pom</packaging>
-   <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-dependency-plugin</artifactId>
-        <version>2.8</version>
-        <executions>
-          <execution>
-            <id>copy-dependencies</id>
-            <phase>package</phase>
-            <goals>
-              <goal>copy</goal>
-            </goals>
-            <configuration>
-              <artifactItems>
-                <artifactItem>
-                  <groupId>org.opendaylight.integration</groupId>
-                  <artifactId>distributions-virtualization</artifactId>
-                  <version>${project.version}</version>
-                  <type>zip</type>
-                  <classifier>osgipackage</classifier>
-                  <overWrite>true</overWrite>
-                  <outputDirectory>${project.build.directory}/dist</outputDirectory>
-                </artifactItem>
-              </artifactItems>
-              <!-- other configurations here -->
-              <overWriteReleases>false</overWriteReleases>
-              <overWriteSnapshots>false</overWriteSnapshots>
-              <overWriteIfNewer>true</overWriteIfNewer>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-</project>