alshabib | 9fbb223 | 2016-12-23 00:40:08 -0800 | [diff] [blame] | 1 | FROM onosproject/onos:1.8 |
| 2 | |
| 3 | MAINTAINER Zsolt Haraszti <zharaszt@ciena.com> |
| 4 | MAINTAINER Ali Al-Shabibi <ali.al-shabibi@onlab.us> |
| 5 | MAINTAINER Nathan Knuth <nathan.knuth@tibitcom.com> |
| 6 | |
alshabib | 896809c | 2017-01-09 11:00:08 -0800 | [diff] [blame] | 7 | ENV ONOS_APP=/root/onos/apps ONOS=/root/onos KARAF_SYS=/root/onos/apache-karaf-3.0.5/system/org VERSION=1.2-SNAPSHOT |
alshabib | 9fbb223 | 2016-12-23 00:40:08 -0800 | [diff] [blame] | 8 | |
| 9 | RUN apt-get update && apt-get install -y git maven unzip && git clone http://gerrit.opencord.org/olt && \ |
| 10 | git clone http://gerrit.opencord.org/aaa && \ |
| 11 | git clone http://gerrit.opencord.org/config |
| 12 | |
| 13 | RUN cd $ONOS/olt && mvn clean install |
| 14 | RUN mkdir $ONOS_APP/org.onosproject.olt && cd $ONOS_APP/org.onosproject.olt &&\ |
| 15 | cp $ONOS/olt/app/target/*.oar org.onosproject.olt.oar && unzip *.oar && touch active &&\ |
| 16 | cd $KARAF_SYS && mkdir -p opencord/olt-api/$VERSION && mkdir -p opencord/olt-app/$VERSION &&\ |
| 17 | unzip -d . -j $ONOS/olt/app/target/*.oar && mv olt-api-$VERSION.jar opencord/olt-api/$VERSION &&\ |
| 18 | mv olt-app-$VERSION.jar opencord/olt-app/$VERSION && mv olt-app-$VERSION-features.xml opencord/olt-app/$VERSION |
| 19 | RUN cd $ONOS/config && mvn clean install |
| 20 | RUN mkdir $ONOS_APP/org.opencord.cord-config && cd $ONOS_APP/org.opencord.cord-config &&\ |
| 21 | cp $ONOS/config/target/*.oar org.opencord.config.oar && unzip *.oar && touch active &&\ |
| 22 | cd $KARAF_SYS && mkdir -p opencord/cord-config/$VERSION && cd opencord/cord-config/$VERSION &&\ |
| 23 | unzip -d . -j $ONOS/config/target/*.oar |
| 24 | |
| 25 | RUN cd $ONOS/aaa && mvn clean install |
| 26 | RUN mkdir $ONOS_APP/org.opencord.aaa && cd $ONOS_APP/org.opencord.aaa &&\ |
| 27 | cp $ONOS/aaa/target/*.oar org.opencord.aaa.oar && unzip *.oar && touch active &&\ |
| 28 | cd $KARAF_SYS && mkdir -p opencord/aaa/$VERSION && cd opencord/aaa/$VERSION &&\ |
| 29 | unzip -d . -j $ONOS/aaa/target/*.oar |
| 30 | |
| 31 | COPY config/netcfg.json $KARAF_ROOT/../config/network-cfg.json |