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 | |
parent | 81be564fc9b21c67505636aad7f6c4381f9cd2f5 (diff) | |
download | trackermap-server-88afc092584d0c02e3c8a20684302c3748e050ea.tar.gz trackermap-server-88afc092584d0c02e3c8a20684302c3748e050ea.tar.bz2 trackermap-server-88afc092584d0c02e3c8a20684302c3748e050ea.zip |
Remove manual docker scripts
-rw-r--r-- | setup/docker/Dockerfile | 28 | ||||
-rwxr-xr-x | setup/docker/build.sh | 31 |
2 files changed, 0 insertions, 59 deletions
diff --git a/setup/docker/Dockerfile b/setup/docker/Dockerfile deleted file mode 100644 index d86b078c1..000000000 --- a/setup/docker/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -FROM java:8-alpine - -MAINTAINER Danilo Recchia <danilo.recchia@vortus.solutions> - -USER root - -RUN apk upgrade --update && \ - apk add --update curl bash && \ - rm -rf /var/cache/apk/* && \ - mkdir -p /opt/traccar/logs && \ - mkdir -p /opt/traccar/data - -ENV JAVA_OPTS -Xms256m -Xmx1024m - -COPY ./tmp/traccar.xml /opt/traccar/traccar.xml -COPY ./tmp/default.xml /opt/traccar/conf/default.xml -COPY ./tmp/schema /opt/traccar/schema -COPY ./tmp/templates /opt/traccar/templates -COPY ./tmp/web /opt/traccar/web -COPY ./tmp/lib /opt/traccar/lib -COPY ./tmp/traccar-server.jar /opt/traccar/traccar-server.jar - -EXPOSE 8082 -EXPOSE 5000-5150 - -WORKDIR /opt/traccar - -ENTRYPOINT ["java","-jar","traccar-server.jar","traccar.xml"] 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} |