diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-25 11:11:22 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 11:11:22 +1300 |
commit | d094946545b810fa82b2392d8e9dbe69d0ada891 (patch) | |
tree | fba2d2e7dcf2a7c23774a7d210d9b080ae5340a2 /setup/docker/build.sh | |
parent | 34645b739783b4aa2a13cd74516b5deec6597fe1 (diff) | |
parent | ff4e575ecc79f0ccbb0a73d6b15c4415f7f8aece (diff) | |
download | trackermap-server-d094946545b810fa82b2392d8e9dbe69d0ada891.tar.gz trackermap-server-d094946545b810fa82b2392d8e9dbe69d0ada891.tar.bz2 trackermap-server-d094946545b810fa82b2392d8e9dbe69d0ada891.zip |
Merge pull request #2578 from oudenaar/master
Small fixes getting image build again
Diffstat (limited to 'setup/docker/build.sh')
-rwxr-xr-x[-rw-r--r--] | setup/docker/build.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/setup/docker/build.sh b/setup/docker/build.sh index 31ee60a03..f32335ead 100644..100755 --- a/setup/docker/build.sh +++ b/setup/docker/build.sh @@ -13,12 +13,17 @@ tmp="./setup/docker/tmp" mkdir -p ${tmp} -cat ./setup/unix/traccar.xml | awk '/web.path/ && !modif { printf(" <entry key=\"web.debug\">true</entry>\n"); modif=1 } {print}' > ${tmp}/traccar.xml +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 ./target/tracker-server.jar ${tmp}/traccar-server.jar cp -rf ./target/lib ${tmp}/lib -cp -rf ./web ${tmp}/web +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}
\ No newline at end of file +rm -rf ${tmp} |