Update the code for docker to be not dependent 11/25611/1
authorVenkata Harish K Kajur <vk250x@att.com>
Tue, 5 Dec 2017 21:52:14 +0000 (16:52 -0500)
committerVenkata Harish K Kajur <vk250x@att.com>
Tue, 5 Dec 2017 21:52:18 +0000 (16:52 -0500)
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 <vk250x@att.com>
aai-traversal/src/main/resources/docker/docker-entrypoint.sh

index d1231f2..59172a2 100644 (file)
@@ -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