diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2019-07-15 13:47:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-15 13:47:31 +0000 |
commit | 0e85c3644ea0141f7761da89926e358ef68acb41 (patch) | |
tree | 3162c3ec182769f86b764c516ed860119188b9d2 /src/main/resources | |
parent | e9cf8726925be44556950e43b854fea8b6e96491 (diff) | |
parent | 8dda7f13d9c8e64a22156fcb904344ca770176ee (diff) |
Merge "PM-Mapper creates too many ssl_client processes"
Diffstat (limited to 'src/main/resources')
-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 |