aboutsummaryrefslogtreecommitdiffstats
path: root/aai-resources
diff options
context:
space:
mode:
Diffstat (limited to 'aai-resources')
-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}/*;