From 9c59b27d6c63f6afa812ad62050809291c76643b Mon Sep 17 00:00:00 2001 From: gahissy Date: Tue, 2 May 2017 18:44:30 +0100 Subject: Docker build script now accept arguments build.sh --- setup/docker/build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'setup/docker') diff --git a/setup/docker/build.sh b/setup/docker/build.sh index eedc633bc..0b292fc5f 100755 --- a/setup/docker/build.sh +++ b/setup/docker/build.sh @@ -5,9 +5,10 @@ which awk &> /dev/null || { echo >&2 "Awk package cant be found on path. Aborti which docker &> /dev/null || { echo >&2 "Docker package cant be found on path. Aborting."; exit 1; } mvn package || { echo >&2 "Maven package has failed. Aborting."; exit 1; } -export company="tananaev" -export software="traccar" -export version=$(head -n 10 ./pom.xml |grep version|cut -d ">" -f2|cut -d"<" -f1) +export company=${1:-"tananaev"} +export software=${2:-"traccar"} +export _version=$(head -n 10 ./pom.xml |grep version|cut -d ">" -f2|cut -d"<" -f1) +export version=${3:-_version} tmp="./setup/docker/tmp" -- cgit v1.2.3