From 2243c180310ee45202fc296efbdb2bef1e2248f7 Mon Sep 17 00:00:00 2001 From: Marek Kasztelnik Date: Fri, 16 Jun 2017 12:13:06 +0200 Subject: [PATCH] Make final package jar name static This solve the problem with building docker image after version change. --- Dockerfile | 2 +- docker/indigo-slam.sh | 2 +- pom.xml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26b4d35..9715f2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN apt-get -y update RUN apt-get install -y openjdk-8-jre-headless RUN mkdir -p /opt/indigo-slam -COPY target/*.jar /opt/indigo-slam/ +COPY target/indigo-slam.jar /opt/indigo-slam/ COPY docker/pki/synchroDuo.jks /opt/pki/ COPY docker/indigo-slam.sh /opt/indigo-slam/ diff --git a/docker/indigo-slam.sh b/docker/indigo-slam.sh index ec30026..70de565 100755 --- a/docker/indigo-slam.sh +++ b/docker/indigo-slam.sh @@ -1,6 +1,6 @@ #!/bin/bash JDBC_URL="jdbc:mysql://$MYSQL_ADDRESS:$MYSQL_PORT/$MYSQL_DB?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&autoReconnectForPools=true" -export SLAM_BIN=indigo-slam-1.2.0.jar +export SLAM_BIN=indigo-slam.jar if [ -n "$CERT_FILE" ] && [ -f $CERT_FILE ]; then echo "Adding $CERT_FILE to keystore" diff --git a/pom.xml b/pom.xml index 571c155..75e2f7f 100644 --- a/pom.xml +++ b/pom.xml @@ -173,6 +173,7 @@ + indigo-slam org.springframework.boot