Initial commit
This commit is contained in:
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@@ -0,0 +1,5 @@
|
||||
.git
|
||||
.gitignore
|
||||
.dockerignore
|
||||
node_modules
|
||||
|
31
CloudronManifest.json
Normal file
31
CloudronManifest.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"id": "org.traccar.coudronapp",
|
||||
"title": "Traccar",
|
||||
"author": "Traccar developers",
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "One-line description",
|
||||
"version": "0.1.0",
|
||||
"healthCheckPath": "/",
|
||||
"httpPort": 8082,
|
||||
"addons": {
|
||||
"ldap": {},
|
||||
"localstorage": {}
|
||||
},
|
||||
"tcpPorts": {
|
||||
"OSMAND_PORT": {
|
||||
"title": "OsmAnd Port",
|
||||
"description": "Port over which OsmAnd clients can connect",
|
||||
"defaultValue": 5055
|
||||
}
|
||||
},
|
||||
"manifestVersion": 1,
|
||||
"website": "https://example.com",
|
||||
"contactEmail": "support@cloudron.io",
|
||||
"icon": "",
|
||||
"tags": [
|
||||
"changeme"
|
||||
],
|
||||
"mediaLinks": []
|
||||
}
|
||||
|
1
DESCRIPTION.md
Normal file
1
DESCRIPTION.md
Normal file
@@ -0,0 +1 @@
|
||||
Please add the appstore description in markdown format here.
|
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
|
||||
|
||||
RUN mkdir -p /app/code
|
||||
WORKDIR /app/code
|
||||
|
||||
RUN wget https://github.com/traccar/traccar/releases/download/v4.5/traccar-linux-64-4.5.zip -O traccar.zip && \
|
||||
unzip traccar.zip && \
|
||||
./traccar.run --target /app/code/ --noexec && \
|
||||
rm README.txt traccar.zip traccar.run
|
||||
|
||||
RUN rm /app/code/conf/traccar.xml && ln -s /app/data/traccar.xml /app/code/conf/traccar.xml
|
||||
|
||||
COPY start.sh traccar.xml.template /app/pkg/
|
||||
|
||||
CMD [ "/app/pkg/start.sh" ]
|
13
start.sh
Executable file
13
start.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
echo "=> Ensure traccar.xml config"
|
||||
if [[ ! -f /app/data/traccar.xml ]]; then
|
||||
cp /app/pkg/traccar.xml.template /app/data/traccar.xml
|
||||
fi
|
||||
|
||||
cd /app/code
|
||||
|
||||
echo "=> Start traccar-server"
|
||||
./jre/bin/java -jar tracker-server.jar ./conf/traccar.xml
|
26
traccar.xml.template
Normal file
26
traccar.xml.template
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
|
||||
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
|
||||
|
||||
<properties>
|
||||
|
||||
<entry key='config.default'>./conf/default.xml</entry>
|
||||
|
||||
<!--
|
||||
|
||||
This is the main configuration file. All your configuration parameters should be placed in this file.
|
||||
|
||||
Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
|
||||
with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
|
||||
remove "config.default" parameter from this file unless you know what you are doing.
|
||||
|
||||
For list of available parameters see following page: https://www.traccar.org/configuration-file/
|
||||
|
||||
-->
|
||||
|
||||
<entry key='database.driver'>org.h2.Driver</entry>
|
||||
<entry key='database.url'>jdbc:h2:./data/database</entry>
|
||||
<entry key='database.user'>sa</entry>
|
||||
<entry key='database.password'></entry>
|
||||
|
||||
</properties>
|
Reference in New Issue
Block a user