summaryrefslogtreecommitdiffstats
path: root/opendaylight/nitrogen/src/main
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-02-08 15:20:51 -0500
committerDan Timoney <dtimoney@att.com>2018-02-08 15:21:13 -0500
commitf593735d32f497487ebd52c8c45ba67c12b04bf2 (patch)
tree6ee67a854f6ded7d8665b23f381959617f57f5db /opendaylight/nitrogen/src/main
parentbb108d7d8615a3568a499d086b8241b0d80a837e (diff)
Add nitrogen container
Add new docker container for OpenDaylight Nitrogen Issue-ID: CCSDK-179 Change-Id: Ic44d54785b58a1cbc71a37ae73b31ddfd057856c Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'opendaylight/nitrogen/src/main')
-rw-r--r--opendaylight/nitrogen/src/main/docker/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/opendaylight/nitrogen/src/main/docker/Dockerfile b/opendaylight/nitrogen/src/main/docker/Dockerfile
new file mode 100644
index 00000000..7e66a61a
--- /dev/null
+++ b/opendaylight/nitrogen/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.openecomp.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/distribution-karaf-${ccsdk.opendaylight.version}.tar.gz --directory /opt/opendaylight \
+ && rm -rf /tmp/distribution-karaf-${ccsdk.opendaylight.version}.tar.gz \
+ && ln -s /opt/opendaylight/distribution-karaf-${ccsdk.opendaylight.version} /opt/opendaylight/current
+
+
+# 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