diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2021-09-17 18:58:20 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2021-09-27 14:28:29 +0100 |
commit | 9fd5ad2dc79c416f5e277f5b233f90ace5191cd8 (patch) | |
tree | 7af219d182f4faff06a54df779e0a8b7e13ccad4 /packages/policy-gui-docker/src/main | |
parent | aa3754bc3dbcd08203744912f01f98f91768bf61 (diff) |
Disable apex-editor and pdp-monitoring
Have only nginx process (clamp) running in policy-gui
Issue-ID: POLICY-3650
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: If15d54f83444b845dc23b090cf966afaf1664490
Diffstat (limited to 'packages/policy-gui-docker/src/main')
4 files changed, 2 insertions, 28 deletions
diff --git a/packages/policy-gui-docker/src/main/docker/Dockerfile b/packages/policy-gui-docker/src/main/docker/Dockerfile index 0e8bcc2..b7ba494 100644 --- a/packages/policy-gui-docker/src/main/docker/Dockerfile +++ b/packages/policy-gui-docker/src/main/docker/Dockerfile @@ -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 && \ diff --git a/packages/policy-gui-docker/src/main/docker/etc/nginx/http.d/default.conf b/packages/policy-gui-docker/src/main/docker/etc/nginx/http.d/default.conf index 2c589c4..c03894d 100644 --- a/packages/policy-gui-docker/src/main/docker/etc/nginx/http.d/default.conf +++ b/packages/policy-gui-docker/src/main/docker/etc/nginx/http.d/default.conf @@ -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; } diff --git a/packages/policy-gui-docker/src/main/docker/index.html b/packages/policy-gui-docker/src/main/docker/index.html index 98742ae..54b07f1 100644 --- a/packages/policy-gui-docker/src/main/docker/index.html +++ b/packages/policy-gui-docker/src/main/docker/index.html @@ -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> diff --git a/packages/policy-gui-docker/src/main/docker/policy-gui.sh b/packages/policy-gui-docker/src/main/docker/policy-gui.sh index 050cbb7..7cdefba 100644 --- a/packages/policy-gui-docker/src/main/docker/policy-gui.sh +++ b/packages/policy-gui-docker/src/main/docker/policy-gui.sh @@ -19,17 +19,4 @@ # ============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;" |