c35a746f48d4f313c0616ffd9648a3dcce9ee926
[ccsdk/distribution.git] / opendaylight / src / main / docker / Dockerfile
1 # Base ubuntu with added packages needed for open ecomp
2 FROM onap/ccsdk-ubuntu-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
7 # copy the opendaylight tar and expand
8 COPY distribution-karaf-${ccsdk.opendaylight.version}.tar.gz /tmp/
9 RUN mkdir /opt/opendaylight \
10     && tar zxvf /tmp/distribution-karaf-${ccsdk.opendaylight.version}.tar.gz --directory /opt/opendaylight \
11     && rm -rf /tmp/distribution-karaf-${ccsdk.opendaylight.version}.tar.gz \
12     && ln -s /opt/opendaylight/distribution-karaf-${ccsdk.opendaylight.version} /opt/opendaylight/current
13
14
15 # workaround till we get proxy working
16 RUN mkdir -p /opt/opendaylight/current/system/org/mariadb/jdbc/mariadb-java-client/${ccsdk.mariadb-connector-java.version}
17 COPY mariadb-java-client-${ccsdk.mariadb-connector-java.version}.jar /opt/opendaylight/current/system/org/mariadb/jdbc/mariadb-java-client/${ccsdk.mariadb-connector-java.version}
18 # ENTRYPOINT exec /opt/opendaylight/current/bin/karaf
19 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