aboutsummaryrefslogtreecommitdiffstats
path: root/aai-resources/src
diff options
context:
space:
mode:
authorVenkata Harish K Kajur <vk250x@att.com>2017-12-05 16:48:31 -0500
committerVenkata Harish K Kajur <vk250x@att.com>2017-12-05 16:48:37 -0500
commit0ea1a7e187c5d0f1ad1ddea21668c17eec07018b (patch)
tree42ad864aab6bce503cc35adefbe315f3b4ba637f /aai-resources/src
parent583824d44c7e6a6db64eb133fc8d3e42c44d4d9d (diff)
Update the code for docker to be not dependent
on core version so each time there is a version change we don't need to increase the versions Issue-ID: AAI-550 Change-Id: I8a0a9eafaeeeefa172d17201853daf2a19773eca Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'aai-resources/src')
-rw-r--r--aai-resources/src/main/resources/docker/docker-entrypoint.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/aai-resources/src/main/resources/docker/docker-entrypoint.sh b/aai-resources/src/main/resources/docker/docker-entrypoint.sh
index a132b9b..695d515 100644
--- a/aai-resources/src/main/resources/docker/docker-entrypoint.sh
+++ b/aai-resources/src/main/resources/docker/docker-entrypoint.sh
@@ -50,6 +50,10 @@ httpsPort=8447;
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};
CP=${COMMONLIBS_HOME}/*;