From: Venkata Harish K Kajur Date: Tue, 5 Dec 2017 21:52:14 +0000 (-0500) Subject: Update the code for docker to be not dependent X-Git-Tag: v1.2.0~37 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2e18f76de5f3b7d2680dde42a30f87b8e69a0312;p=aai%2Ftraversal.git Update the code for docker to be not dependent on core version so each time there is a version update there won't be need to update this everywhere Issue-ID: AAI-550 Change-Id: I86db1e5e8dd5fc2b0357600219cd5ac3aab5ba6c Signed-off-by: Venkata Harish K Kajur --- diff --git a/aai-traversal/src/main/resources/docker/docker-entrypoint.sh b/aai-traversal/src/main/resources/docker/docker-entrypoint.sh index d1231f21..59172a26 100644 --- a/aai-traversal/src/main/resources/docker/docker-entrypoint.sh +++ b/aai-traversal/src/main/resources/docker/docker-entrypoint.sh @@ -53,6 +53,11 @@ httpsPort=8446; AAI_CORE_JAR=$(ls ${APP_HOME}/extJars/aai-core*.jar); +# Get the basename of the aai-core-X.Y.Z-SNAPSHOT.jar +# Then extract the X.Y.Z-SNAPSHOT part +AAI_CORE_VERSION=$(basename ${AAI_CORE_JAR} | grep -o '[0-9]*\.[0-9]*\.[0-9]*[^.]*'); + + cd ${APP_HOME}; # If the variable DISABLE_UPDATE_QUERY is empty