From 2fdf10710620c68ce59cec5c4456709fb62a286a Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Wed, 15 Apr 2020 10:14:32 +0200 Subject: Adding version as variable in Dockerfiles Issue-ID: INT-1517 Signed-off-by: Bartosz Gardziejewski Change-Id: I701583e9d5ed1089178cd5bd590034dd7bcc9402 --- netconfsimulator/Dockerfile_app | 5 ++++- netconfsimulator/docker/Dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'netconfsimulator') diff --git a/netconfsimulator/Dockerfile_app b/netconfsimulator/Dockerfile_app index 2043b8a..589be17 100644 --- a/netconfsimulator/Dockerfile_app +++ b/netconfsimulator/Dockerfile_app @@ -1,4 +1,7 @@ FROM docker.io/openjdk:8-jre-alpine + +ARG VERSION=${version} + ADD target/libs /app/libs -ADD target/netconfsimulator-1.0.0-SNAPSHOT.jar /app/netconf-simulator.jar +ADD target/netconfsimulator-${VERSION}.jar /app/netconf-simulator.jar CMD java -cp /app/libs/*:/app/netconf-simulator.jar org.onap.netconfsimulator.Main diff --git a/netconfsimulator/docker/Dockerfile b/netconfsimulator/docker/Dockerfile index 63bb3ee..d7d27a9 100644 --- a/netconfsimulator/docker/Dockerfile +++ b/netconfsimulator/docker/Dockerfile @@ -1,4 +1,7 @@ FROM docker.io/openjdk:8-jre-alpine + +ARG VERSION=${version} + ADD libs /app/libs -ADD netconfsimulator-1.0.0-SNAPSHOT.jar /app/netconf-simulator.jar +ADD netconfsimulator-${VERSION}.jar /app/netconf-simulator.jar CMD java -cp /app/libs/*:/app/netconf-simulator.jar org.onap.netconfsimulator.Main -- cgit 1.2.3-korg