blob: acd06a8e27329811b215ae9eb154135801ed25c6 [file] [log] [blame]
Andrea Campanella28d60122017-10-23 19:43:23 +02001FROM onosproject/onos:1.10.8 as build
David K. Bainbridge251024b2017-08-10 09:11:23 -07002MAINTAINER Open Networking Foundation <info@opennetworking.org>
3
4ENV BUILD_ROOT=/build
5
6COPY apps/ /build
7
8# The ENV settings for ONOS, KARAF_VERSION, KARAF_ROOT, KARAF_M2, and APPS_ROOT
9# must be replicated below to the final image as they are shared between stages
10ENV ONOS=/root/onos
11ENV APPS_ROOT=${ONOS}/apps
David K. Bainbridge56da9572017-08-17 09:56:50 -070012ENV KARAF_VERSION=3.0.8
David K. Bainbridge251024b2017-08-10 09:11:23 -070013ENV KARAF_ROOT=${ONOS}/apache-karaf-${KARAF_VERSION}
14ENV KARAF_M2=${KARAF_ROOT}/system
15ENV APP_INSTALL_ROOT=/expand
16
17# Specify application versions to install
David K. Bainbridgefcaa26b2017-09-08 12:02:48 -070018ENV AAA_VERSION=1.4.0-SNAPSHOT \
19 CONFIG_VERSION=1.4.0-SNAPSHOT \
20 IGMP_VERSION=1.4.0-SNAPSHOT \
21 IGMP_PROXY_VERSION=1.2.0-SNAPSHOT \
22 MCAST_VERSION=1.4.0-SNAPSHOT \
23 OLT_VERSION=1.4.0-SNAPSHOT \
24 SADIS_VERSION=1.2.0-SNAPSHOT \
25 VTN_VERSION=1.4.0-SNAPSHOT \
26 L2_DHCP_RELAY_VERSION=1.2.0-SNAPSHOT
David K. Bainbridge251024b2017-08-10 09:11:23 -070027
28ENV APPS="aaa-${AAA_VERSION} \
29 cord-config-${CONFIG_VERSION} \
30 igmp-${IGMP_VERSION} \
31 mcast-${MCAST_VERSION} \
32 olt-app-${OLT_VERSION} \
33 sadis-app-${SADIS_VERSION} \
34 vtn-${VTN_VERSION} \
35 aaa-${AAA_VERSION} \
36 onos-app-igmpproxy-${IGMP_PROXY_VERSION} \
37 dhcpl2relay-${L2_DHCP_RELAY_VERSION}"
38
39# Install the applications
40COPY config/app-install.sh .
David K. Bainbridgee26c8702017-08-11 11:04:39 -070041RUN chmod 755 ./app-install.sh
42RUN ./app-install.sh
David K. Bainbridge251024b2017-08-10 09:11:23 -070043
44# Create the final image coping over the installed applications from the build stage
Andrea Campanella28d60122017-10-23 19:43:23 +020045<<<<<<< HEAD
David K. Bainbridgefc061e92017-09-07 14:00:29 -070046FROM onosproject/onos:1.10.6
Andrea Campanella28d60122017-10-23 19:43:23 +020047=======
48FROM onosproject/onos:1.10.8
49>>>>>>> 61cc60f... [CORD-2111 Updating ONOS to 1.10.8]
David K. Bainbridge56da9572017-08-17 09:56:50 -070050
51# Install Key Store Options
52ENV 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}"
David K. Bainbridge251024b2017-08-10 09:11:23 -070053
54ENV ONOS=/root/onos
David K. Bainbridge56da9572017-08-17 09:56:50 -070055ENV KARAF_VERSION=3.0.8
David K. Bainbridge251024b2017-08-10 09:11:23 -070056ENV KARAF_ROOT=${ONOS}/apache-karaf-${KARAF_VERSION}
57ENV KARAF_M2=${KARAF_ROOT}/system
58ENV APPS_ROOT=${ONOS}/apps
59
60COPY --from=build ${KARAF_M2}/ ${KARAF_M2}/
61RUN echo "${KARAF_M2} ${APPS_ROOT}"
62COPY --from=build ${APPS_ROOT}/ ${APPS_ROOT}/
63COPY config/netcfg.json $KARAF_ROOT/../config/network-cfg.json
64
David K. Bainbridge56da9572017-08-17 09:56:50 -070065RUN touch $ONOS/apps/org.onosproject.hostprovider/active
David K. Bainbridge251024b2017-08-10 09:11:23 -070066RUN touch $ONOS/apps/org.onosproject.openflow-base/active
David K. Bainbridge56da9572017-08-17 09:56:50 -070067RUN touch $ONOS/apps/org.onosproject.openflow-base/active
68
69# Create ONOS Key Directory
70RUN mkdir -p /home/sdn/wiki
71COPY docker/onos_cfg/ /home/sdn/wiki
72
David K. Bainbridge251024b2017-08-10 09:11:23 -070073