Make the cli zip download consistent 93/10293/1
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Tue, 5 Sep 2017 06:35:42 +0000 (12:05 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Tue, 5 Sep 2017 06:37:27 +0000 (12:07 +0530)
CLI-14
Change-Id: I502ca257cb68f8817936f13bc3252bb0feac2ce6
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
deployment/docker/src/main/docker/Dockerfile
deployment/http/web/index.html
deployment/http/web/occ.html [new file with mode: 0644]

index 8717fb3..61ecd50 100644 (file)
@@ -3,7 +3,7 @@ FROM ubuntu:14.04
 #installation
 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 && apt-get install -y lighttpd && apt-get install -y git curl
+RUN sudo -E add-apt-repository ppa:openjdk-r/ppa && apt-get update && apt-get install -y openjdk-8-jdk && apt-get install -y lighttpd && apt-get install -y git curl && apt-get install -y pandoc
 RUN cd /tmp && curl -O https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz && tar -xvf go1.9.linux-amd64.tar.gz
 RUN mkdir -p /tmp/gotty && \
   GOPATH=/tmp/gotty /tmp/go/bin/go get github.com/yudai/gotty && \
@@ -28,9 +28,13 @@ RUN ln ./bin/onap.sh /usr/sbin/onap
 RUN if [ ! -d ./data ]; then mkdir ./data; fi
 RUN if [ ! -d ./onap-cli-schema ]; then mkdir ./onap-cli-schema; fi
 
+RUN pandoc -t plain $ONAP_CLI_HOME/docs/README.md > $ONAP_CLI_HOME/docs/onap-readme.txt
+
 COPY ./STAGE/http/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf
 COPY ./STAGE/http/web /var/www-data/servers/onap-cli/
-COPY ./STAGE/installer/*.zip /var/www-data/servers/onap-cli/
+
+COPY ./STAGE/installer/cli-*.zip /var/www-data/servers/onap-cli/onap-cli.zip
+
 RUN if [ ! -f /var/log/lighttpd/access.log ]; then touch /var/log/lighttpd/access.log; fi
 COPY ./STAGE/http/lighttpd/10-proxy.conf /etc/lighttpd/conf-enabled/
 RUN cp /etc/lighttpd/conf-available/10-accesslog.conf /etc/lighttpd/conf-enabled/
index ea2491a..768dcc4 100644 (file)
@@ -33,5 +33,5 @@ typing <strong>use &lt;product-version&gt;</strong></p>
 <p><a href="https://wiki.onap.org">https://wiki.onap.org</a></p>
 
 <h2><a id="Download_42"></a>To download</h2>
-<p style="color:red">Please download ONAP CLI <a href="./cli-1.0.0-SNAPSHOT.zip">here</a></p>
+<p style="color:red">Please download ONAP CLI <a href="./onap-cli.zip">here</a></p>
 </body></html>
\ No newline at end of file
diff --git a/deployment/http/web/occ.html b/deployment/http/web/occ.html
new file mode 100644 (file)
index 0000000..e0a18d9
--- /dev/null
@@ -0,0 +1,16 @@
+<!doctype html>\r
+<html>\r
+  <head>\r
+    <title>OCC</title>\r
+    <link rel="icon" type="image/png" href="./onap-cli.png">\r
+    <link rel="stylesheet" href="./css/index.css" />\r
+    <link rel="stylesheet" href="./css/xterm.css" />\r
+    <link rel="stylesheet" href="./css/xterm_customize.css" />\r
+  </head>\r
+  <body>\r
+    <div id="terminal"></div>\r
+    <script src="./auth_token.js"></script>\r
+    <script src="./config.js"></script>\r
+    <script src="./js/gotty-bundle.js"></script>\r
+  </body>\r
+</html>
\ No newline at end of file