blob: 4d4d373781dacd14d30eaa0ed2768b8dc018ea40 [file] [log] [blame]
Dan Timoney471dafa2017-08-21 14:44:05 -04001# Base ubuntu with added packages needed for open ecomp
Timoney, Dan (dt5972)6f0c0102018-06-18 23:01:08 -04002FROM onap/ccsdk-odl-oxygen-image:${project.version}
Timoney, Dan (dt5972)e14a0202018-06-22 17:05:16 -04003MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org)
Dan Timoney471dafa2017-08-21 14:44:05 -04004ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
Timoney, Dan (dt5972)e14a0202018-06-22 17:05:16 -04005ENV ODL_HOME /opt/opendaylight
Timoney, Dan (dt5972)21821db2018-03-13 19:26:40 -04006ENV SDNC_CONFIG_DIR /opt/onap/ccsdk/data/properties
Timoney, Dan (dt5972)e14a0202018-06-22 17:05:16 -04007ENV CCSDK_SLI_CORE_REPO mvn:org.onap.ccsdk.sli.core/ccsdk-sli-core-all/${ccsdk.sli.core.version}/xml/features
8ENV CCSDK_SLI_ADAPTORS_REPO mvn:org.onap.ccsdk.sli.adaptors/ccsdk-sli-adaptors-all/${ccsdk.sli.adaptors.version}/xml/features
9ENV CCSDK_SLI_NORTHBOUND_REPO mvn:org.onap.ccsdk.sli.northbound/ccsdk-sli-northbound-all/${ccsdk.sli.northbound.version}/xml/features
10ENV CCSDK_SLI_PLUGINS_REPO mvn:org.onap.ccsdk.sli.plugins/ccsdk-sli-plugins-all/${ccsdk.sli.plugins.version}/xml/features
Dan Timoney74e4e8d2017-08-22 11:51:54 -040011# copy the opendaylight credentials
Timoney, Dan (dt5972)e14a0202018-06-22 17:05:16 -040012COPY idmlight.db.mv.db $ODL_HOME/data
13
14
15# copy CCSDK mvn artifacts to ODL repository
16COPY system /tmp/system
17RUN rsync -a /tmp/system $ODL_HOME && rm -rf /tmp/system
18
19# Add CCSDK repositories to boot repositories
20RUN cp $ODL_HOME/etc/org.apache.karaf.features.cfg $ODL_HOME/etc/org.apache.karaf.features.cfg.orig
21RUN cat $ODL_HOME/etc/org.apache.karaf.features.cfg.orig | sed -e "\|featuresRepositories|s|$|, ${CCSDK_SLI_CORE_REPO}, ${CCSDK_SLI_ADAPTORS_REPO}, ${CCSDK_SLI_NORTHBOUND_REPO}, ${CCSDK_SLI_PLUGINS_REPO}|" > $ODL_HOME/etc/org.apache.karaf.features.cfg
22
23# Create odl user
24RUN useradd odl
25
26# Install ansible-opendaylight
27RUN apt install -y software-properties-common && \
28 apt-add-repository -y ppa:ansible/ansible && \
29 apt update && \
30 apt install -y ansible && \
31 ansible-galaxy install git+https://git.opendaylight.org/gerrit/integration/packaging/ansible-opendaylight
32
33# Copy ccsdk install playbook
34COPY install_ccsdk.yml /tmp
35
36# Install features in ODL
37RUN ansible-playbook -i "localhost," -c local /tmp/install_ccsdk.yml
38
Dan Timoney471dafa2017-08-21 14:44:05 -040039
Dan Timoney74e4e8d2017-08-22 11:51:54 -040040# copy deliverables to opt
Dan Timoney471dafa2017-08-21 14:44:05 -040041COPY opt /opt
Timoney, Dan (dt5972)e14a0202018-06-22 17:05:16 -040042COPY org.ops4j.pax.logging.cfg /opt/opendaylight/etc/org.ops4j.pax.logging.cfg
Dan Timoney471dafa2017-08-21 14:44:05 -040043
Marcus G K Williamsdc299ed2017-09-14 15:15:45 -070044
Timoney, Dan (dt5972)e14a0202018-06-22 17:05:16 -040045ENTRYPOINT /opt/onap/ccsdk/bin/startODL.sh
Dan Timoney471dafa2017-08-21 14:44:05 -040046EXPOSE 8181