blob: c35a746f48d4f313c0616ffd9648a3dcce9ee926 [file] [log] [blame]
Dan Timoneye50df7d2017-08-10 16:59:02 -04001# Base ubuntu with added packages needed for open ecomp
2FROM onap/ccsdk-ubuntu-image:${project.version}
3MAINTAINER CCSDK Team (onap-ccsdk@lists.openecomp.org)
4ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
5ENV ODL_HOME /opt/opendaylight/current
6
7# copy the opendaylight tar and expand
8COPY distribution-karaf-${ccsdk.opendaylight.version}.tar.gz /tmp/
9RUN 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 Timoneyec8e4d82017-09-18 11:59:15 -040016RUN mkdir -p /opt/opendaylight/current/system/org/mariadb/jdbc/mariadb-java-client/${ccsdk.mariadb-connector-java.version}
Dan Timoneye7224552017-09-18 16:29:54 -040017COPY 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 Timoneye50df7d2017-08-10 16:59:02 -040018# ENTRYPOINT exec /opt/opendaylight/current/bin/karaf
19EXPOSE 8181