From 0ea1a7e187c5d0f1ad1ddea21668c17eec07018b Mon Sep 17 00:00:00 2001 From: Venkata Harish K Kajur Date: Tue, 5 Dec 2017 16:48:31 -0500 Subject: 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 --- aai-resources/src/main/resources/docker/docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aai-resources/src/main') 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}/*; -- cgit 1.2.3-korg