why build when you can download
Change-Id: I1171418d892ad93b4d5c6d0eebcfd5941ec895aa
diff --git a/docker/config/app-install.sh b/docker/config/app-install.sh
index ec39263..e33a411 100644
--- a/docker/config/app-install.sh
+++ b/docker/config/app-install.sh
@@ -1,14 +1,10 @@
#!/bin/bash
HERE=$(pwd)
-for app in $APPS; do
+OARS=$(find $DOWNLOAD_ROOT -name "*.oar")
+for oar in $OARS; do
cd $HERE
- echo "Installing application '$app'"
- oar=$(find $BUILD_ROOT -path "*/target/*" -name "$app*".oar)
- if [ "$oar x" == " x" ]; then
- echo "Required application, $app, not found."
- exit 1
- fi
+ echo "Installing application '$oar'"
rm -rf $APP_INSTALL_ROOT
mkdir -p $APP_INSTALL_ROOT
cd $APP_INSTALL_ROOT
diff --git a/docker/config/dependencies.xml b/docker/config/dependencies.xml
new file mode 100644
index 0000000..53afdac
--- /dev/null
+++ b/docker/config/dependencies.xml
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 2017-present Open Networking Foundation
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>fake</groupId>
+ <artifactId>fake</artifactId>
+ <version>fake</version>
+
+ <properties>
+ <aaa.version>1.3.0-SNAPSHOT</aaa.version>
+ <config.version>1.3.0-SNAPSHOT</config.version>
+ <dhcpl2relay.version>1.1.0-SNAPSHOT</dhcpl2relay.version>
+ <igmp.version>1.3.0-SNAPSHOT</igmp.version>
+ <igmpproxy.version>1.1.0-SNAPSHOT</igmpproxy.version>
+ <mcast.version>1.3.0-SNAPSHOT</mcast.version>
+ <olt.version>1.3.0-SNAPSHOT</olt.version>
+ <sadis.version>1.1.0-SNAPSHOT</sadis.version>
+ <vtn.version>1.3.0-SNAPSHOT</vtn.version>
+
+ <!-- TODO onos-build-conf.version can be dropped when onos.version > 1.10.3 -->
+ <onos-build-conf.version>1.10.3-onf</onos-build-conf.version>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>3.0.1</version>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.opencord</groupId>
+ <artifactId>cord-config</artifactId>
+ <version>${config.version}</version>
+ <type>oar</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.opencord</groupId>
+ <artifactId>igmp</artifactId>
+ <version>${igmp.version}</version>
+ <type>oar</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.opencord</groupId>
+ <artifactId>mcast</artifactId>
+ <version>${mcast.version}</version>
+ <type>oar</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.opencord</groupId>
+ <artifactId>olt-app</artifactId>
+ <version>${olt.version}</version>
+ <type>oar</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.opencord</groupId>
+ <artifactId>sadis-app</artifactId>
+ <version>${sadis.version}</version>
+ <type>oar</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.opencord</groupId>
+ <artifactId>vtn</artifactId>
+ <version>${vtn.version}</version>
+ <type>oar</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.opencord</groupId>
+ <artifactId>aaa</artifactId>
+ <version>${aaa.version}</version>
+ <type>oar</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.opencord</groupId>
+ <artifactId>onos-app-igmpproxy</artifactId>
+ <version>${igmpproxy.version}</version>
+ <type>oar</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.opencord</groupId>
+ <artifactId>dhcpl2relay</artifactId>
+ <version>${dhcpl2relay.version}</version>
+ <type>oar</type>
+ <overWrite>true</overWrite>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>central</id>
+ <name>Central Repository</name>
+ <url>http://repo.maven.apache.org/maven2</url>
+ <layout>default</layout>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </releases>
+ </repository>
+
+ <repository>
+ <id>snapshots</id>
+ <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+
+</project>