summaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/Dockerfile2
-rw-r--r--src/main/resources/reconfigure.sh2
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