diff options
author | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-06-11 14:46:33 -0400 |
---|---|---|
committer | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-06-11 14:46:33 -0400 |
commit | 85947fd27e2c0cee9cbc237cfd2c8a440b913832 (patch) | |
tree | af3dc162d24714f3f15200232243cdb0a4b6bc4c /opendaylight/oxygen/src/main/docker/Dockerfile | |
parent | 42862be1b422ebfda398b8f634adb0a847d31632 (diff) |
Create base ODL Oxygen docker
Create base docker image of OpenDaylight Oxygen SR1
Change-Id: I53fa3a824cb7d69bb638da7eb85b4f3d2643a65d
Issue-ID: CCSDK-284
Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
Diffstat (limited to 'opendaylight/oxygen/src/main/docker/Dockerfile')
-rw-r--r-- | opendaylight/oxygen/src/main/docker/Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/opendaylight/oxygen/src/main/docker/Dockerfile b/opendaylight/oxygen/src/main/docker/Dockerfile new file mode 100644 index 00000000..f5c2324c --- /dev/null +++ b/opendaylight/oxygen/src/main/docker/Dockerfile @@ -0,0 +1,19 @@ +# Base ubuntu with added packages needed for open ecomp +FROM onap/ccsdk-ubuntu-image:${project.version} +MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org) +ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 +ENV ODL_HOME /opt/opendaylight/current + +# copy the opendaylight tar and expand +COPY karaf-${ccsdk.opendaylight.version}.tar.gz /tmp/ +RUN mkdir /opt/opendaylight \ + && tar zxvf /tmp/karaf-${ccsdk.opendaylight.version}.tar.gz --directory /opt/opendaylight \ + && rm -rf /tmp/karaf-${ccsdk.opendaylight.version}.tar.gz \ + && mv /opt/opendaylight/karaf-${ccsdk.opendaylight.version} /opt/opendaylight/current \ + && ln -s /opt/opendaylight/current /opt/opendaylight/karaf-${ccsdk.opendaylight.version} + +# workaround till we get proxy working +RUN mkdir -p /opt/opendaylight/current/system/org/mariadb/jdbc/mariadb-java-client/${ccsdk.mariadb-connector-java.version} +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} +# ENTRYPOINT exec /opt/opendaylight/current/bin/karaf +EXPOSE 8181 |