Dan Timoney | e50df7d | 2017-08-10 16:59:02 -0400 | [diff] [blame] | 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 |
Dan Timoney | ec8e4d8 | 2017-09-18 11:59:15 -0400 | [diff] [blame] | 16 | RUN mkdir -p /opt/opendaylight/current/system/org/mariadb/jdbc/mariadb-java-client/${ccsdk.mariadb-connector-java.version} |
Dan Timoney | e722455 | 2017-09-18 16:29:54 -0400 | [diff] [blame] | 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} |
Dan Timoney | e50df7d | 2017-08-10 16:59:02 -0400 | [diff] [blame] | 18 | # ENTRYPOINT exec /opt/opendaylight/current/bin/karaf |
| 19 | EXPOSE 8181 |