diff options
author | ejamcud <james.cuddy@est.tech> | 2019-07-11 14:17:55 +0100 |
---|---|---|
committer | ejamcud <james.cuddy@est.tech> | 2019-07-11 15:47:18 +0100 |
commit | 8dda7f13d9c8e64a22156fcb904344ca770176ee (patch) | |
tree | 37b1f4f3ca717bd53f97e4c5a8f233744b78868b /src | |
parent | 8b84c0efa23d14062432e6ded35558748f5e990a (diff) |
PM-Mapper creates too many ssl_client processes
Issue-ID: DCAEGEN2-1615
Signed-off-by: ejamcud <james.cuddy@est.tech>
Change-Id: I33bd310eae0f7aac21a9c0fd86dcc8fc99896a89
Diffstat (limited to 'src')
-rw-r--r-- | src/main/resources/Dockerfile | 2 | ||||
-rw-r--r-- | src/main/resources/reconfigure.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/resources/Dockerfile b/src/main/resources/Dockerfile index e354d13..95fdfad 100644 --- a/src/main/resources/Dockerfile +++ b/src/main/resources/Dockerfile @@ -23,6 +23,8 @@ ENTRYPOINT ["/bin/sh", "-c", "nohup sh etc/reconfigure.sh & /usr/bin/java -jar / ARG JAR WORKDIR /opt/app/pm-mapper +RUN apk --no-cache add curl + RUN mkdir -p /var/log/ONAP RUN addgroup -S onap \ && adduser -S pm-mapper -G onap \ diff --git a/src/main/resources/reconfigure.sh b/src/main/resources/reconfigure.sh index 79aea06..1998e5f 100644 --- a/src/main/resources/reconfigure.sh +++ b/src/main/resources/reconfigure.sh @@ -2,5 +2,5 @@ while true do sleep 60 - echo $(wget -S --spider --no-check-certificate https://localhost:8443/reconfigure 2>&1) >> /var/log/ONAP/dcaegen2/services/pm-mapper/reconfigure.log + echo $(curl -sI -X GET https://localhost:8443/reconfigure -k | head -n1) >> /var/log/ONAP/dcaegen2/services/pm-mapper/reconfigure.log done |