4e6afa77f70e1aee47a59af65fcef0429accfc23
[ccsdk/distribution.git] / odlsli / src / main / docker / Dockerfile
1 # Base ubuntu with added packages needed for open ecomp
2 FROM onap/ccsdk-odl-image:${project.version}
3 MAINTAINER CCSDK Team (onap-ccsdk@lists.openecomp.org)
4 ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
5 ENV ODL_HOME /opt/opendaylight/current
6 ENV SDNC_CONFIG_DIR /opt/onap/sdnc/data/properties
7
8 # copy the opendaylight tar and expand
9 COPY distribution-karaf-${sdnc.opendaylight.version}.tar.gz /tmp/
10 RUN mkdir /opt/opendaylight \
11     && tar zxvf /tmp/distribution-karaf-${sdnc.opendaylight.version}.tar.gz --directory /opt/opendaylight \
12     && rm -rf /tmp/distribution-karaf-${sdnc.opendaylight.version}.tar.gz \
13     && ln -s /opt/opendaylight/distribution-karaf-${sdnc.opendaylight.version} /opt/opendaylight/current \
14     && mkdir /opt/onap
15
16 COPY idmlight.db.mv.db /opt/opendaylight/current
17
18 # copy openecomp
19 COPY opt /opt
20 RUN ln -s /opt/onap/sdnc /opt/sdnc
21
22 # workaround till we get proxy working
23 RUN mkdir -p /opt/opendaylight/current/system/mysql/mysql-connector-java/${sdnc.mysql-connector-java.version}
24 COPY mysql-connector-java-${sdnc.mysql-connector-java.version}.jar /opt/opendaylight/current/system/mysql/mysql-connector-java/${sdnc.mysql-connector-java.version}
25 # ENTRYPOINT exec /opt/opendaylight/current/bin/karaf
26 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