Fixing nginx provisioning issues for https 33/31433/1
authorAvinash S <avinash.s@huawei.com>
Mon, 12 Feb 2018 14:14:29 +0000 (14:14 +0000)
committerAvinash S <avinash.s@huawei.com>
Mon, 12 Feb 2018 14:14:29 +0000 (14:14 +0000)
Issue-ID: VNFSDK-199

Change-Id: I28bf3e5bfddd2b5b4efde131716f07e20111a81e
Signed-off-by: Avinash S <avinash.s@huawei.com>
vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile
vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/certgen.sh [changed mode: 0644->0755]
vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/nginx.conf

index 87114c9..209cfea 100644 (file)
@@ -19,16 +19,15 @@ ENV JAVA_HOME /usr/lib/jvm/jre
 WORKDIR /service
 
 # 20-mysq.txt
-RUN yum install epel-release
-RUN yum install nginx && \
+RUN yum -y install epel-release
+RUN yum -y install nginx && \
     mkdir -p /etc/nginx/ssl
 COPY nginx.conf /etc/nginx/nginx.conf
 COPY certgen.sh .
-CMD  chmod +x ./certgen.sh && \
-     ./certgen.sh
-COPY example.key example.cert /etc/nginx/ssl/
-#CMD service nginx start 
-
+CMD  chmod +x ./certgen.sh 
+RUN ./certgen.sh 
+# && systemctl start nginx
+     
 # Set up mysql
 RUN wget -q http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm && rpm -ivh mysql-community-release-el7-5.noarch.rpm && rm -f mysql-community-release-el7-5.noarch.rpm
 RUN yum -y update
@@ -38,7 +37,7 @@ COPY init-mysql.sh .
 
 # 30-tomcat.txt - AUTOGENERATED, DO NOT MODIFY MANUALLY
 # Set up tomcat
-RUN wget -q http://mirrors.ocf.berkeley.edu/apache/tomcat/tomcat-8/v8.5.23/bin/apache-tomcat-8.5.23.tar.gz && tar --strip-components=1 -xf apache-tomcat-8.5.23.tar.gz && rm -f apache-tomcat-8.5.23.tar.gz && rm -rf webapps && mkdir -p webapps/ROOT
+RUN wget -q http://mirrors.ocf.berkeley.edu/apache/tomcat/tomcat-8/v8.5.27/bin/apache-tomcat-8.5.27.tar.gz && tar --strip-components=1 -xf apache-tomcat-8.5.27.tar.gz && rm -f apache-tomcat-8.5.27.tar.gz && rm -rf webapps && mkdir -p webapps/ROOT
 RUN echo 'export CATALINA_OPTS="$CATALINA_OPTS -Xms64m -Xmx256m -XX:MaxPermSize=64m"' > /service/bin/setenv.sh
 ENV CATALINA_HOME /service
 
old mode 100644 (file)
new mode 100755 (executable)
index 1108c71..796d577
@@ -1,2 +1,6 @@
-#/bin/sh
+#!/bin/sh
 openssl req -nodes -newkey rsa:2048 -keyout example.key -out example.csr -subj "/C=IN/ST=Bangalore/L=Bangalore/O=Global Security/OU=ONAP/CN=example.com"
+openssl x509 -req -in example.csr -signkey example.key -out cert.crt
+cp -p cert.crt /etc/nginx/ssl/
+systemctl enable nginx
+