blob: 22245ace73db0612c54f647acf6e1b84692346ab [file] [log] [blame]
alshabib9fbb2232016-12-23 00:40:08 -08001FROM onosproject/onos:1.8
2
3MAINTAINER Zsolt Haraszti <zharaszt@ciena.com>
4MAINTAINER Ali Al-Shabibi <ali.al-shabibi@onlab.us>
5MAINTAINER Nathan Knuth <nathan.knuth@tibitcom.com>
6
7ENV ONOS_APP=/root/onos/apps ONOS=/root/onos KARAF_SYS=/root/onos/apache-karaf-3.0.5/system/org VERSION=1.1-SNAPSHOT
8
9RUN 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
13RUN cd $ONOS/olt && mvn clean install
14RUN 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
19RUN cd $ONOS/config && mvn clean install
20RUN 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
25RUN cd $ONOS/aaa && mvn clean install
26RUN 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
31COPY config/netcfg.json $KARAF_ROOT/../config/network-cfg.json