fixing onos dockerfile to lay files correctly on fs.

Change-Id: I5bb3048d6426165c93a47f60fbc9517c494c6cf0
diff --git a/docker/config/app-install.sh b/docker/config/app-install.sh
new file mode 100644
index 0000000..bc70817
--- /dev/null
+++ b/docker/config/app-install.sh
@@ -0,0 +1,15 @@
+touch $APPS/org.onosproject.openflow-base/active
+
+find $ONOS -name "*.oar" -path "*/target/*" | while read line; do 
+    mkdir -p $AUX && cd $AUX 
+    cp $line $AUX
+    jar -xf $AUX/*.oar
+    name=$(grep "name=" $AUX/app.xml | sed 's/<app name="//g;s/".*//g')
+    mkdir -p $APPS/$name
+    cp $AUX/app.xml $APPS/$name/app.xml
+    touch $APPS/$name/active
+    [ -f $AUX/app.png ] && cp $AUX/app.png $APPS/$name/app.png
+    cp $AUX/*.oar $APPS/$name/$name.oar
+    cp -rf $AUX/m2/* $KARAF_M2
+    rm -fr $AUX
+done