summaryrefslogtreecommitdiffstats
path: root/odlsli/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-08-21 14:44:05 -0400
committerDan Timoney <dtimoney@att.com>2017-08-21 14:44:05 -0400
commit471dafabda15677d67b5ef11ce2f4060b8c81f5b (patch)
treefb1db237449fb8a2299b2cc83e6bbb89e9c684cf /odlsli/src/main/docker/Dockerfile
parent24a1a1b4a46330e9c5fa54ddabe3d01c3c60571f (diff)
Add ODL + SLI container
Add docker container that starts up OpenDaylight with SLI preinstalled Change-Id: Iffbc21e0437108608fc35fc573d8ef47e413eca8 Issue-ID: CCSDK-27 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'odlsli/src/main/docker/Dockerfile')
-rw-r--r--odlsli/src/main/docker/Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/odlsli/src/main/docker/Dockerfile b/odlsli/src/main/docker/Dockerfile
new file mode 100644
index 00000000..4e6afa77
--- /dev/null
+++ b/odlsli/src/main/docker/Dockerfile
@@ -0,0 +1,26 @@
+# Base ubuntu with added packages needed for open ecomp
+FROM onap/ccsdk-odl-image:${project.version}
+MAINTAINER CCSDK Team (onap-ccsdk@lists.openecomp.org)
+ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
+ENV ODL_HOME /opt/opendaylight/current
+ENV SDNC_CONFIG_DIR /opt/onap/sdnc/data/properties
+
+# copy the opendaylight tar and expand
+COPY distribution-karaf-${sdnc.opendaylight.version}.tar.gz /tmp/
+RUN mkdir /opt/opendaylight \
+ && tar zxvf /tmp/distribution-karaf-${sdnc.opendaylight.version}.tar.gz --directory /opt/opendaylight \
+ && rm -rf /tmp/distribution-karaf-${sdnc.opendaylight.version}.tar.gz \
+ && ln -s /opt/opendaylight/distribution-karaf-${sdnc.opendaylight.version} /opt/opendaylight/current \
+ && mkdir /opt/onap
+
+COPY idmlight.db.mv.db /opt/opendaylight/current
+
+# copy openecomp
+COPY opt /opt
+RUN ln -s /opt/onap/sdnc /opt/sdnc
+
+# workaround till we get proxy working
+RUN mkdir -p /opt/opendaylight/current/system/mysql/mysql-connector-java/${sdnc.mysql-connector-java.version}
+COPY mysql-connector-java-${sdnc.mysql-connector-java.version}.jar /opt/opendaylight/current/system/mysql/mysql-connector-java/${sdnc.mysql-connector-java.version}
+# ENTRYPOINT exec /opt/opendaylight/current/bin/karaf
+EXPOSE 8181