blob: 37bdad0f4911d54a29f2fc9054dfa8d813dda46f [file] [log] [blame]
FROM onosproject/onos:1.8
MAINTAINER Zsolt Haraszti <zharaszt@ciena.com>
MAINTAINER Ali Al-Shabibi <ali.al-shabibi@onlab.us>
MAINTAINER Nathan Knuth <nathan.knuth@tibitcom.com>
ENV APPS=/root/onos/apps ONOS=/root/onos KARAF_M2=/root/onos/apache-karaf-3.0.5/system VERSION=1.2-SNAPSHOT
ENV AUX=$APPS/aux
ENV JAVA_OPTS="${JAVA_OPTS:--DenableOFTLS=true -Djavax.net.ssl.keyStore=/home/sdn/wiki/onos.jks -Djavax.net.ssl.keyStorePassword=222222 -Djavax.net.ssl.trustStore=/home/sdn/wiki/onos.jks -Djavax.net.ssl.trustStorePassword=222222}"
RUN apt-get update && apt-get install -y git maven unzip
RUN git config --global http.sslverify false && \
git clone https://alshabibi@bitbucket.org/alshabibi/onos-apps.git
RUN cd $ONOS/onos-apps/apps && mvn -DskipTests=true clean install
WORKDIR $ONOS
COPY config/app-install.sh .
RUN sh $ONOS/app-install.sh
#RUN touch $ONOS/apps/org.onosproject.dhcp/active
RUN touch $ONOS/apps/org.onosproject.hostprovider/active
COPY config/netcfg.json $KARAF_ROOT/../config/network-cfg.json
# Create ONOS Key Directory
RUN mkdir -p /home/sdn/wiki
COPY onos_cfg/ /home/sdn/wiki