diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-04-23 06:20:37 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-04-23 06:20:37 +1200 |
commit | 88afc092584d0c02e3c8a20684302c3748e050ea (patch) | |
tree | 9073192efeb052869ef81170506cd15676d35c64 /setup/docker/build.sh | |
parent | 81be564fc9b21c67505636aad7f6c4381f9cd2f5 (diff) | |
download | trackermap-server-88afc092584d0c02e3c8a20684302c3748e050ea.tar.gz trackermap-server-88afc092584d0c02e3c8a20684302c3748e050ea.tar.bz2 trackermap-server-88afc092584d0c02e3c8a20684302c3748e050ea.zip |
Remove manual docker scripts
Diffstat (limited to 'setup/docker/build.sh')
-rwxr-xr-x | setup/docker/build.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/setup/docker/build.sh b/setup/docker/build.sh deleted file mode 100755 index b4cb75a4a..000000000 --- a/setup/docker/build.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -which mvn &> /dev/null || { echo >&2 "Maven package cant be found on path. Aborting."; exit 1; } -which awk &> /dev/null || { echo >&2 "Awk package cant be found on path. Aborting."; exit 1; } -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=${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" - -mkdir -p ${tmp} - -cat ./setup/traccar.xml | awk '/config.default/ && !modif { print;printf(" <entry key=\"web.debug\">true</entry>\n");next; modif=1 } {print}' > ${tmp}/traccar.xml -cp -rf ./setup/default.xml ${tmp} -cp -rf ./schema ${tmp}/schema -cp -rf ./templates ${tmp}/templates -cp -rf ./target/tracker-server.jar ${tmp}/traccar-server.jar -cp -rf ./target/lib ${tmp}/lib -if [ -d ./traccar-web/web ]; then - cp -rf ./traccar-web/web ${tmp}/web -else - mkdir ${tmp}/web -fi - -docker build -t ${company}/${software}:${version} ./setup/docker/ - -rm -rf ${tmp} |