Removed manual shutdown hook for hazelcast 42/101842/2
authorSebastien Premont-Tendland <sebastien.premont@bell.ca>
Mon, 17 Feb 2020 16:14:02 +0000 (11:14 -0500)
committerSebastien Premont-Tendland <sebastien.premont@bell.ca>
Mon, 17 Feb 2020 16:30:57 +0000 (11:30 -0500)
commitaa7eeb999f1fcb7edc190fbcefe9747fc6e63059
treea84dffc4fdde79555ae81602e6c1c69eb55a9768
parente0e8b14e106cff2dccc76e6edcc1a7ee6ffe10da
Removed manual shutdown hook for hazelcast

Shutdown hook for hazelcast are already working with spring boot. Just
changed the policy to GRACEFUL (default is TERMINATE). This allow
hazelcast to shutdown gracefully and recover from a rolling upgrade

Also updated the Dockerfile to use multi stage to reduce by ~200Mb
the docker image size.

Issue-ID: CCSDK-2011
Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca>
Change-Id: I0034145c7acefa88ed8d16f23a29249c7225ace3
ms/blueprintsprocessor/application/src/main/docker/Dockerfile
ms/blueprintsprocessor/application/src/main/docker/startService.sh
ms/blueprintsprocessor/application/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/BluePrintProcessorCluster.kt
ms/blueprintsprocessor/application/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/BlueprintProcessorApplication.kt
ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/cluster/HazlecastClusterService.kt