Disable apex-editor and pdp-monitoring 51/124451/4
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 17 Sep 2021 17:58:20 +0000 (18:58 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Mon, 27 Sep 2021 13:28:29 +0000 (14:28 +0100)
Have only nginx process (clamp) running in policy-gui

Issue-ID: POLICY-3650
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: If15d54f83444b845dc23b090cf966afaf1664490

packages/policy-gui-docker/pom.xml
packages/policy-gui-docker/src/main/docker/Dockerfile
packages/policy-gui-docker/src/main/docker/etc/nginx/http.d/default.conf
packages/policy-gui-docker/src/main/docker/index.html
packages/policy-gui-docker/src/main/docker/policy-gui.sh

index 4ff22ef..2866f8d 100644 (file)
                                                 </includes>
                                                 <outputFileNameMapping>gui-clamp-html.tar.gz</outputFileNameMapping>
                                             </dependencySet>
-                                            <dependencySet>
-                                                <includes>
-                                                    <include>org.onap.policy.gui:gui-pdp-monitoring:tar.gz:frontend:${project.version}</include>
-                                                </includes>
-                                                <outputFileNameMapping>gui-pdp-monitoring-html.tar.gz</outputFileNameMapping>
-                                            </dependencySet>
-                                            <dependencySet>
-                                                <includes>
-                                                    <include>org.onap.policy.gui:gui-pdp-monitoring:uber.jar:${project.version}</include>
-                                                </includes>
-                                                <outputFileNameMapping>gui-pdp-monitoring-uber.jar</outputFileNameMapping>
-                                            </dependencySet>
-                                            <dependencySet>
-                                                <includes>
-                                                    <include>org.onap.policy.gui.editors:gui-editor-apex:uber.jar:${project.version}</include>
-                                                </includes>
-                                                <outputFileNameMapping>gui-editor-apex-uber.jar</outputFileNameMapping>
-                                            </dependencySet>
                                         </dependencySets>
                                     </inline>
                                 </assembly>
             <classifier>clamp-build</classifier>
             <type>tar.gz</type>
         </dependency>
-        <dependency>
-            <groupId>org.onap.policy.gui</groupId>
-            <artifactId>gui-pdp-monitoring</artifactId>
-            <version>${project.version}</version>
-            <classifier>frontend</classifier>
-            <type>tar.gz</type>
-        </dependency>
-        <dependency>
-            <groupId>org.onap.policy.gui</groupId>
-            <artifactId>gui-pdp-monitoring</artifactId>
-            <version>${project.version}</version>
-            <type>uber.jar</type>
-        </dependency>
-        <dependency>
-            <groupId>org.onap.policy.gui.editors</groupId>
-            <artifactId>gui-editor-apex</artifactId>
-            <version>${project.version}</version>
-            <type>uber.jar</type>
-        </dependency>
     </dependencies>
 </project>
index 0e8bcc2..b7ba494 100644 (file)
@@ -34,8 +34,7 @@ RUN mkdir -p $POLICY_HOME $POLICY_LOGS $POLICY_HOME/bin $POLICY_HOME/lib && \
 
 COPY --chown=policy:policy etc/ /etc/
 COPY --chown=policy:policy policy-gui.sh $POLICY_HOME/bin/
-COPY --chown=policy:policy /maven/*.jar $POLICY_HOME/lib/
-ADD --chown=policy:policy index.html /maven/*-html.tar.gz /usr/share/nginx/html/
+ADD --chown=policy:policy index.html /maven/gui-clamp-html.tar.gz /usr/share/nginx/html/
 RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
     ln -sf /dev/stderr /var/log/nginx/error.log && \
     touch /var/run/nginx.pid && \
index 2c589c4..c03894d 100644 (file)
@@ -16,16 +16,6 @@ server {
     proxy_set_header X-SSL-Cert $ssl_client_escaped_cert;
   }
 
-  location /pdp-monitoring/papservices/monitoring/ {
-    proxy_pass http://localhost:17999/papservices/monitoring/;
-  }
-
-  location /apex-editor/ {
-    proxy_pass http://localhost:18989/;
-    proxy_set_header Host $host;
-    proxy_set_header If-Modified-Since $http_if_modified_since;
-  }
-
   location = /50x.html {
     root /var/lib/nginx/html;
   }
index 98742ae..54b07f1 100644 (file)
@@ -6,8 +6,6 @@
 </head>
 <body>
     <ul>
-        <li><a href="/apex-editor">Apex Policy Editor</a></li>
-        <li><a href="/pdp-monitoring">PDP Monitoring</a></li>
         <li><a href="/clamp">CLAMP Designer UI</a></li>
     </ul>
 </body>
index 050cbb7..7cdefba 100644 (file)
 # ============LICENSE_END=========================================================
 #
 
-trap 'exit 0' SIGTERM
-
-JAVA_HOME=/usr/lib/jvm/java-11-openjdk/
-
-echo "Starting gui-editor-apex"
-$JAVA_HOME/bin/java -jar "$POLICY_HOME/lib/gui-editor-apex-uber.jar" -p 18989 &
-
-echo "Starting gui-pdp-monitoring"
-$JAVA_HOME/bin/java -jar "$POLICY_HOME/lib/gui-pdp-monitoring-uber.jar" -p 17999 &
-
-echo "Starting nginx"
-nginx -g "daemon on;"
-
-wait
+nginx -g "daemon off;"