Disable messagerouter adaptor
[ccsdk/distribution.git] / odlsli / odlsli-alpine / src / main / docker / Dockerfile
1 # Base ubuntu with added packages needed for open ecomp
2 FROM ${base.image.name}:${project.docker.latestfulltag.version}
3 MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org)
4 ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
5 ENV ODL_HOME /opt/opendaylight
6 ENV SDNC_CONFIG_DIR /opt/onap/ccsdk/data/properties
7 ENV CCSDK_SLI_CORE_REPO mvn:org.onap.ccsdk.sli.core/ccsdk-sli-core-all/${ccsdk.sli.core.version}/xml/features
8 ENV CCSDK_SLI_ADAPTORS_REPO mvn:org.onap.ccsdk.sli.adaptors/ccsdk-sli-adaptors-all/${ccsdk.sli.adaptors.version}/xml/features
9 ENV CCSDK_FEATURES_REPO mvn:org.onap.ccsdk.features/ccsdk-features-all/${ccsdk.features.version}/xml/features
10 ENV CCSDK_SLI_NORTHBOUND_REPO mvn:org.onap.ccsdk.sli.northbound/ccsdk-sli-northbound-all/${ccsdk.sli.northbound.version}/xml/features
11 ENV CCSDK_SLI_PLUGINS_REPO mvn:org.onap.ccsdk.sli.plugins/ccsdk-sli-plugins-all/${ccsdk.sli.plugins.version}/xml/features
12 ENV ANSIBLE_GPG_KEY ${ansible.gpg.key}
13 ENV ODL_BOOT_FEATURES_EXTRA ${odl.boot.features.extra}
14
15 # copy the opendaylight credentials
16 COPY idmlight.db.mv.db $ODL_HOME/data
17
18
19 # copy CCSDK mvn artifacts to ODL repository
20 COPY system /tmp/system
21 RUN rsync -a /tmp/system $ODL_HOME && rm -rf /tmp/system
22
23 # Add CCSDK repositories to boot repositories
24 RUN cp $ODL_HOME/etc/org.apache.karaf.features.cfg $ODL_HOME/etc/org.apache.karaf.features.cfg.orig
25 #RUN sed -i -e "\|featuresRepositories|s|$|, ${CCSDK_SLI_CORE_REPO}, ${CCSDK_SLI_ADAPTORS_REPO}, ${CCSDK_SLI_NORTHBOUND_REPO}, ${CCSDK_SLI_PLUGINS_REPO}, ${CCSDK_FEATURES_REPO}|"  $ODL_HOME/etc/org.apache.karaf.features.cfg
26 RUN sed -i -e "\|featuresRepositories|s|$|, ${CCSDK_SLI_CORE_REPO},${CCSDK_SLI_NORTHBOUND_REPO}, ${CCSDK_SLI_PLUGINS_REPO}, ${CCSDK_FEATURES_REPO}|"  $ODL_HOME/etc/org.apache.karaf.features.cfg
27 RUN sed -i -e "\|featuresBoot[^a-zA-Z]|s|$|,${ODL_BOOT_FEATURES_EXTRA}|"  $ODL_HOME/etc/org.apache.karaf.features.cfg
28
29 # Create odl user
30 RUN addgroup -S odl && adduser -S odl -G odl
31
32 # Install ansible
33 #COPY ansible-sources.list /etc/apt/sources.list.d
34 #RUN gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv ${ANSIBLE_GPG_KEY} && \
35 #    gpg --export --armor ${ANSIBLE_GPG_KEY} | apt-key add - && \
36 #    apk update && \
37 #    apk add -y ansible
38
39 # Install ansible-opendaylight
40 #RUN ansible-galaxy install git+https://git.opendaylight.org/gerrit/integration/packaging/ansible-opendaylight
41
42 # Copy ccsdk install playbook
43 #COPY install_ccsdk.yml /tmp
44
45 # Install features in ODL
46 #RUN ansible-playbook -i "localhost," -c local /tmp/install_ccsdk.yml
47
48
49 # copy deliverables to opt
50 COPY --chown=odl:odl opt /opt
51 COPY --chown=odl:odl org.ops4j.pax.logging.cfg /opt/opendaylight/etc/org.ops4j.pax.logging.cfg
52
53 RUN chown -R odl:odl /opt
54
55 USER odl
56 ENTRYPOINT /opt/onap/ccsdk/bin/startODL.sh
57 EXPOSE 8181

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use