aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/docker/src
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-08-08 16:56:28 +0530
committerKanagaraj Manickam <kanagaraj.manickam@huawei.com>2017-08-08 11:38:57 +0000
commitdb0dcf77f86199650a01afc8f460a4d31927f03c (patch)
tree74e5af5dbedc2f3b1d48388c925e897ae1e12a8a /deployment/docker/src
parent130e318afdcce55e61886512ee0287a82519cea6 (diff)
Add docker deployment mode
Makes deployment into zip and docker based mvn module project. CLI-26 Change-Id: I3e26e64a787ad3795c11a60f796d9d1935be0146 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'deployment/docker/src')
-rw-r--r--deployment/docker/src/main/docker/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/deployment/docker/src/main/docker/Dockerfile b/deployment/docker/src/main/docker/Dockerfile
new file mode 100644
index 00000000..e59789bf
--- /dev/null
+++ b/deployment/docker/src/main/docker/Dockerfile
@@ -0,0 +1,19 @@
+FROM ubuntu:14.04
+
+RUN apt-get update
+RUN apt-get update && apt-get install -y software-properties-common
+RUN sudo -E add-apt-repository ppa:openjdk-r/ppa && apt-get update && apt-get install -y openjdk-8-jdk
+ENV JAVA_HOME usr/lib/jvm/java-8-openjdk-amd64
+
+ENV ONAP_CLI_HOME /opt/onap/cli
+ADD ./STAGE $ONAP_CLI_HOME
+
+WORKDIR $ONAP_CLI_HOME
+RUN chmod +x ./bin/onap.sh
+RUN mkdir ./data
+RUN mkdir ./onap-cli-schema
+RUN ln ./bin/onap.sh /usr/sbin/onap
+
+ENTRYPOINT /bin/bash
+
+RUN echo ONAP CLI successfully installed !! \ No newline at end of file