Compare commits
39 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0bc71eaa5b | ||
|
a0dc7f4558 | ||
|
9e3d0a4937 | ||
|
52b52d1a0f | ||
|
fc9323506f | ||
|
f33dc5bc7e | ||
|
39f43c1749 | ||
|
abc9b953ec | ||
|
2c7d09785a | ||
|
28760e473c | ||
|
25fc82e634 | ||
|
f2d5cadcb4 | ||
|
7a7ff78370 | ||
|
9de136492f | ||
|
9f3c2cc71c | ||
|
e00970a7ac | ||
|
92b658e10f | ||
|
8addbf5eb5 | ||
|
5dd2d5ff29 | ||
|
2800d92f14 | ||
|
c97fa9157a | ||
|
fdd9ac34ae | ||
|
d090334699 | ||
|
0c4156dce9 | ||
|
42321405b4 | ||
|
7da7a5307b | ||
|
faaf81f0c4 | ||
|
2754b1f075 | ||
|
709feb60bc | ||
|
60ec7830dd | ||
|
5e5c2b96f5 | ||
|
ddd348b09a | ||
|
a333a0cfb0 | ||
|
b08767dc17 | ||
|
d7539d6585 | ||
|
a1d8c3b2ee | ||
|
a023246104 | ||
|
19c6c630c5 | ||
|
4c58a95a73 |
28
CHANGELOG
28
CHANGELOG
@@ -1,28 +0,0 @@
|
||||
[0.1.0]
|
||||
* Initial version
|
||||
|
||||
[0.2.0]
|
||||
* Update manifest
|
||||
|
||||
[0.3.0]
|
||||
* Log to stdout
|
||||
|
||||
[0.4.0]
|
||||
* Switch from postgres to mysql. This will break previous installations, please start afresh
|
||||
* Optional SSO
|
||||
|
||||
[0.4.1]
|
||||
* Update traccar to 5.1
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.1)
|
||||
|
||||
[0.5.0]
|
||||
* Update traccar to 5.2
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.2)
|
||||
|
||||
[0.6.0]
|
||||
* Update traccar to 5.3
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.3)
|
||||
|
||||
[1.0.0]
|
||||
* First stable release
|
||||
* Add support for gl200 protocol port 5004
|
91
CHANGELOG.md
Normal file
91
CHANGELOG.md
Normal file
@@ -0,0 +1,91 @@
|
||||
[0.1.0]
|
||||
* Initial version
|
||||
|
||||
[0.2.0]
|
||||
* Update manifest
|
||||
|
||||
[0.3.0]
|
||||
* Log to stdout
|
||||
|
||||
[0.4.0]
|
||||
* Switch from postgres to mysql. This will break previous installations, please start afresh
|
||||
* Optional SSO
|
||||
|
||||
[0.4.1]
|
||||
* Update traccar to 5.1
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.1)
|
||||
|
||||
[0.5.0]
|
||||
* Update traccar to 5.2
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.2)
|
||||
|
||||
[0.6.0]
|
||||
* Update traccar to 5.3
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.3)
|
||||
|
||||
[1.0.0]
|
||||
* First stable release
|
||||
* Add support for gl200 protocol port 5004
|
||||
|
||||
[1.0.1]
|
||||
* Add GPS103 port 5001
|
||||
|
||||
[1.0.2]
|
||||
* Add TAIP port 5031
|
||||
|
||||
[1.0.3]
|
||||
* Update traccar to 5.4
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.4)
|
||||
|
||||
[1.1.0]
|
||||
* Update traccar to 5.5
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.5)
|
||||
|
||||
[1.2.0]
|
||||
* Update base image to 4.0.0
|
||||
|
||||
[1.2.1]
|
||||
* Add H02 port 5013
|
||||
|
||||
[1.2.2]
|
||||
* Update traccar to 5.6
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.6)
|
||||
|
||||
[1.3.0]
|
||||
* Update traccar to 5.7
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.7)
|
||||
|
||||
[1.4.0]
|
||||
* Add support for Telefonika TMT250 Port 5027
|
||||
|
||||
[1.5.0]
|
||||
* Update traccar to 5.8
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.8)
|
||||
|
||||
[1.5.1]
|
||||
* Update traccar to 5.9
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.9)
|
||||
|
||||
[1.6.0]
|
||||
* Update base image to 4.2.0
|
||||
|
||||
[1.7.0]
|
||||
* Update traccar to 5.10
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.10)
|
||||
* [Release Announcement](https://www.traccar.org/blog/traccar-5-10/)
|
||||
* Two-factor authentication using TOTP
|
||||
* Event to notify about sent queued commands
|
||||
* Option to access last position in computed attributes
|
||||
* Unification of OBD speed units
|
||||
* Event buffer limit in the web app (should improve performance)
|
||||
* Automatic update check for the web app
|
||||
|
||||
[1.7.1]
|
||||
* Update traccar to 5.11
|
||||
* [Full changelog](https://github.com/traccar/traccar/releases/tag/v5.11)
|
||||
* Update web submodule
|
||||
|
||||
[1.7.2]
|
||||
* Update traccar to 5.12
|
||||
* [Full changelog](https://www.traccar.org/blog/traccar-5-12/)
|
||||
|
@@ -3,10 +3,10 @@
|
||||
"title": "Traccar",
|
||||
"author": "Traccar developers",
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"changelog": "file://CHANGELOG.md",
|
||||
"tagline": "Modern GPS Tracking Platform",
|
||||
"version": "1.0.0",
|
||||
"upstreamVersion": "5.3",
|
||||
"version": "1.7.2",
|
||||
"upstreamVersion": "5.12",
|
||||
"minBoxVersion": "7.1.0",
|
||||
"memoryLimit": 1073741824,
|
||||
"healthCheckPath": "/",
|
||||
@@ -31,12 +31,38 @@
|
||||
"OSMAND_PORT": {
|
||||
"title": "OsmAnd Port",
|
||||
"description": "Port over which OsmAnd clients can connect",
|
||||
"defaultValue": 5055
|
||||
"defaultValue": 5055,
|
||||
"containerPort": 5055
|
||||
},
|
||||
"GL200_PORT": {
|
||||
"title": "GL200 Protocol Port",
|
||||
"description": "Port over which GL200 clients can connect",
|
||||
"defaultValue": 5004
|
||||
"defaultValue": 5004,
|
||||
"containerPort": 5004
|
||||
},
|
||||
"GPS103_PORT": {
|
||||
"title": "GPS103 Protocol Port",
|
||||
"description": "Port over which GPS103 clients can connect",
|
||||
"defaultValue": 5001,
|
||||
"containerPort": 5001
|
||||
},
|
||||
"TAIP_PORT": {
|
||||
"title": "TAIP Protocol Port",
|
||||
"description": "Port over which TAIP clients can connect",
|
||||
"defaultValue": 5031,
|
||||
"containerPort": 5031
|
||||
},
|
||||
"H02_PORT": {
|
||||
"title": "H02 Protocol Port",
|
||||
"description": "Port over which H02 clients can connect",
|
||||
"defaultValue": 5013,
|
||||
"containerPort": 5013
|
||||
},
|
||||
"TELTOKIA_PORT": {
|
||||
"title": "Teltonika Protocol Port",
|
||||
"description": "Port over which Teltonika clients can connect",
|
||||
"defaultValue": 5027,
|
||||
"containerPort": 5027
|
||||
}
|
||||
},
|
||||
"website": "https://www.traccar.org",
|
||||
|
@@ -1,9 +1,9 @@
|
||||
FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263ea
|
||||
FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4
|
||||
|
||||
RUN mkdir -p /app/code
|
||||
WORKDIR /app/code
|
||||
|
||||
ARG VERSION=5.3
|
||||
ARG VERSION=5.12
|
||||
|
||||
RUN wget https://github.com/traccar/traccar/releases/download/v${VERSION}/traccar-linux-64-${VERSION}.zip -O traccar.zip && \
|
||||
unzip traccar.zip && \
|
||||
|
@@ -1,7 +1,6 @@
|
||||
This app is pre-setup with an admin account. The initial credentials are:
|
||||
|
||||
**Username**: admin<br/>
|
||||
**Username**: admin@cloudron.local<br/>
|
||||
**Password**: admin<br/>
|
||||
|
||||
Please change the admin email and password credentials immediately.
|
||||
|
||||
|
31
start.sh
31
start.sh
@@ -7,16 +7,38 @@ mkdir -p /run/traccar/logs /app/data/media
|
||||
echo -e "[client]\npassword=${CLOUDRON_MYSQL_PASSWORD}" > /run/traccar/mysql-extra
|
||||
readonly mysql="mysql --defaults-file=/run/traccar/mysql-extra --user=${CLOUDRON_MYSQL_USERNAME} --host=${CLOUDRON_MYSQL_HOST} -P ${CLOUDRON_MYSQL_PORT} ${CLOUDRON_MYSQL_DATABASE}"
|
||||
|
||||
wait_for_table() {
|
||||
ret=`$mysql --skip-column-names -s -e "SHOW TABLES LIKE '$1';"`
|
||||
while [ "$ret" != "$1" ]; do
|
||||
echo "=> Table $1 not yet created, waiting ..."
|
||||
sleep 1;
|
||||
ret=`$mysql --skip-column-names -s -e "SHOW TABLES LIKE '$1';"`
|
||||
echo "ret was ${ret}"
|
||||
done
|
||||
}
|
||||
|
||||
disable_registration() {
|
||||
sleep 10
|
||||
echo "==> disabling registration"
|
||||
wait_for_table tc_servers;
|
||||
|
||||
echo "==> Disabling registration"
|
||||
$mysql -e "UPDATE tc_servers SET registration=0 WHERE id=1"
|
||||
}
|
||||
|
||||
ensure_admin_account() {
|
||||
wait_for_table tc_users;
|
||||
|
||||
echo "==> Ensure admin account"
|
||||
count=`$mysql --skip-column-names -s -e "SELECT COUNT(*) FROM tc_users WHERE name='admin';"`
|
||||
if [[ "$count" = "0" ]]; then
|
||||
echo "==> Create initial admin account"
|
||||
# Values are from https://github.com/traccar/traccar/blob/master/schema/changelog-3.3.xml#L179 which is not used anymore, but we still want the admin account
|
||||
$mysql -e "INSERT INTO tc_users (name, email, hashedpassword, salt, administrator) VALUES ('admin', 'admin@cloudron.local', 'D33DCA55ABD4CC5BC76F2BC0B4E603FE2C6F61F4C1EF2D47', '000000000000000000000000000000000000000000000000', TRUE)"
|
||||
fi
|
||||
}
|
||||
|
||||
echo "=> Ensure traccar.xml config"
|
||||
if [[ ! -f /app/data/traccar.xml ]]; then
|
||||
cp /app/pkg/traccar.xml.template /app/data/traccar.xml
|
||||
disable_registration &
|
||||
fi
|
||||
|
||||
echo "=> Ensure database settings"
|
||||
@@ -58,6 +80,9 @@ xmlstarlet ed --inplace \
|
||||
--update '//properties/entry[@key="mail.smtp.password"]' -v "${CLOUDRON_MAIL_SMTP_PASSWORD}" \
|
||||
/app/data/traccar.xml
|
||||
|
||||
disable_registration &
|
||||
ensure_admin_account &
|
||||
|
||||
chown -R cloudron /run/traccar /app/data
|
||||
|
||||
# https://www.traccar.org/optimization/
|
||||
|
708
test/package-lock.json
generated
708
test/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -10,10 +10,10 @@
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"expect.js": "^0.3.1",
|
||||
"mocha": "^10.0.0",
|
||||
"selenium-webdriver": "^4.3.1"
|
||||
"mocha": "^10.2.0",
|
||||
"selenium-webdriver": "^4.17.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"chromedriver": "^103.0.0"
|
||||
"chromedriver": "^121.0.0"
|
||||
}
|
||||
}
|
||||
|
10
test/test.js
10
test/test.js
@@ -10,7 +10,7 @@
|
||||
|
||||
require('chromedriver');
|
||||
|
||||
var execSync = require('child_process').execSync,
|
||||
const execSync = require('child_process').execSync,
|
||||
expect = require('expect.js'),
|
||||
path = require('path'),
|
||||
{ Builder, By, Key, until } = require('selenium-webdriver'),
|
||||
@@ -27,12 +27,14 @@ describe('Application life cycle test', function () {
|
||||
const LOCATION = 'test';
|
||||
const TEST_TIMEOUT = 10000;
|
||||
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
|
||||
const ADMIN_USERNAME = 'admin'; // the login form is called email but accepts usernames
|
||||
const ADMIN_PASSWORD = 'admin';
|
||||
const DEVICE_NAME = 'FancyDevice';
|
||||
const DEVICE_IDENTIFIER = 'device1';
|
||||
const ADMIN_USERNAME = 'admin@cloudron.local';
|
||||
const ADMIN_PASSWORD = 'admin';
|
||||
const EMAIL = process.env.EMAIL;
|
||||
const PASSWORD = process.env.PASSWORD;
|
||||
|
||||
var browser, app;
|
||||
let browser, app;
|
||||
|
||||
before(function () {
|
||||
const options = new Options().windowSize({ width: 1280, height: 1024 });
|
||||
|
Reference in New Issue
Block a user