aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorgahissy <titus@sillaps.com>2017-05-02 18:44:30 +0100
committergahissy <titus@sillaps.com>2017-05-02 18:44:30 +0100
commit9c59b27d6c63f6afa812ad62050809291c76643b (patch)
tree12cfca1d2d604edd704e93448899b75a16cef534 /setup
parent4197c6e86347aaabbde77875303308095a0fb7c3 (diff)
downloadtrackermap-server-9c59b27d6c63f6afa812ad62050809291c76643b.tar.gz
trackermap-server-9c59b27d6c63f6afa812ad62050809291c76643b.tar.bz2
trackermap-server-9c59b27d6c63f6afa812ad62050809291c76643b.zip
Docker build script now accept arguments build.sh <company> <software> <version>
Diffstat (limited to 'setup')
-rwxr-xr-xsetup/docker/build.sh7
1 files changed, 4 insertions, 3 deletions
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"