summaryrefslogtreecommitdiffstats
path: root/lighty/lighty-ubuntu-docker/src/main/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'lighty/lighty-ubuntu-docker/src/main/docker/Dockerfile')
-rw-r--r--lighty/lighty-ubuntu-docker/src/main/docker/Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/lighty/lighty-ubuntu-docker/src/main/docker/Dockerfile b/lighty/lighty-ubuntu-docker/src/main/docker/Dockerfile
new file mode 100644
index 00000000..fbf9356f
--- /dev/null
+++ b/lighty/lighty-ubuntu-docker/src/main/docker/Dockerfile
@@ -0,0 +1,16 @@
+# Base ubuntu with added packages needed for open ecomp
+FROM onap/ccsdk-ubuntu-image:${project.docker.latestfulltag.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 ${lighty.app.zip} /tmp/lighty/
+RUN mkdir -p /opt/lighty \
+ && unzip /tmp/lighty/${lighty.app.zip} -d /opt/lighty \
+ && rm -rf /tmp/lighty
+
+COPY opt /opt
+
+ENTRYPOINT /opt/onap/ccsdk/bin/startODL.sh
+EXPOSE 8181