summaryrefslogtreecommitdiffstats
path: root/aai-traversal
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-12-05 16:52:14 -0500
committerVenkata Harish K Kajur <vk250x@att.com>2017-12-05 16:52:18 -0500
commit2e18f76de5f3b7d2680dde42a30f87b8e69a0312 (patch)
treee0ca9b8cd70b79ed3928a979cafa6adac4e84df8 /aai-traversal
parent0c18577891da9a5e11f4a8faa1498375cd5d313f (diff)
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 <vk250x@att.com>
Diffstat (limited to 'aai-traversal')
-rw-r--r--aai-traversal/src/main/resources/docker/docker-entrypoint.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/aai-traversal/src/main/resources/docker/docker-entrypoint.sh b/aai-traversal/src/main/resources/docker/docker-entrypoint.sh
index d1231f2..59172a2 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