Fix onap-odl-neon image
[ccsdk/distribution.git] / opendaylight / neon / neon-alpine / src / main / docker / Dockerfile
1 FROM onap/ccsdk-alpine-image:${project.docker.latestfulltag.version}
2 MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org)
3 ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
4 ENV ODL_HOME /opt/opendaylight/current
5
6 # make python2 also available up until OpenDaylight migrates to python3
7 RUN apk add --no-cache py2-pip
8
9 # copy the opendaylight tar and expand
10 COPY ${odl.karaf.artifactId}-${ccsdk.opendaylight.version}.tar.gz /tmp/
11 RUN mkdir -p /opt/odl \
12     && tar zxvf /tmp/${odl.karaf.artifactId}-${ccsdk.opendaylight.version}.tar.gz --directory /opt/odl \
13     && rm -rf /tmp/${odl.karaf.artifactId}-${ccsdk.opendaylight.version}.tar.gz \
14     && mv /opt/odl/${odl.karaf.artifactId}-${ccsdk.opendaylight.version} /opt/opendaylight \
15     && ln -s  /opt/opendaylight /opt/opendaylight/${odl.karaf.artifactId}-${ccsdk.opendaylight.version} \
16     && ln -s /opt/opendaylight /opt/opendaylight/current
17
18
19 # ENTRYPOINT exec /opt/opendaylight/bin/karaf
20 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