mirror of
https://git.cloudron.io/cloudron/syncthing-app
synced 2025-09-13 08:19:09 +00:00
Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
29d09bf7bd | ||
|
0a69ac3577 | ||
|
ab8a2af60d | ||
|
1416ab42fd | ||
|
36e9f3d435 | ||
|
f32e5162a7 | ||
|
2263288b5d | ||
|
58ca4d15bd | ||
|
f1b0fc4097 | ||
|
cb832e1c5d | ||
|
64a6e8bbf6 | ||
|
7f64910521 | ||
|
f84cc9fc51 | ||
|
558c36e859 | ||
|
11ce073fa4 | ||
|
52c22f57a9 |
38
CHANGELOG
38
CHANGELOG
@@ -191,3 +191,41 @@
|
|||||||
* #4277: Announce internal and external address to the global discovery service, encrypted
|
* #4277: Announce internal and external address to the global discovery service, encrypted
|
||||||
* #6734: Consider moving configuration to a proto contract
|
* #6734: Consider moving configuration to a proto contract
|
||||||
* #6928: Announce LAN addresses to global discovery
|
* #6928: Announce LAN addresses to global discovery
|
||||||
|
|
||||||
|
[1.12.1]
|
||||||
|
* Update Syncthing to 1.12.0
|
||||||
|
* #5360: Dangling symlink prevents filesystem watcher on FreeBSD
|
||||||
|
* #6664: Panic due to internal folder context used on exported methods
|
||||||
|
* #7063: panic: runtime error: invalid memory address or nil pointer dereference
|
||||||
|
* #7077: GUI stuck with "id is not defined" error when trying to ignore non-existent folder
|
||||||
|
* #7098: File deletions are not being synced in newly shared folders
|
||||||
|
* #6540: Config PATCH/PUT/DELETE API
|
||||||
|
* #7099: Add a html message to GUI when javascript is disabled
|
||||||
|
* #7108: Certificate for relaysrv with better naming
|
||||||
|
|
||||||
|
[1.13.0]
|
||||||
|
* Update base image to v3
|
||||||
|
|
||||||
|
[1.14.0]
|
||||||
|
* Update Syncthing to 1.14.0
|
||||||
|
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.14.0)
|
||||||
|
|
||||||
|
[1.15.0]
|
||||||
|
* Update Syncthing to 1.15.0
|
||||||
|
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.15.0)
|
||||||
|
|
||||||
|
[1.15.1]
|
||||||
|
* Update Syncthing to 1.15.1
|
||||||
|
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.15.1)
|
||||||
|
|
||||||
|
[1.16.0]
|
||||||
|
* Update Syncthing to 1.16.0
|
||||||
|
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.16.0)
|
||||||
|
|
||||||
|
[1.16.1]
|
||||||
|
* Update Syncthing to 1.16.1
|
||||||
|
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.16.1)
|
||||||
|
|
||||||
|
[1.17.0]
|
||||||
|
* Update Syncthing to 1.17.0
|
||||||
|
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.17.0)
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"changelog": "file://CHANGELOG",
|
"changelog": "file://CHANGELOG",
|
||||||
"tagline": "Decentralized file synchronization",
|
"tagline": "Decentralized file synchronization",
|
||||||
"version": "1.12.0",
|
"version": "1.17.0",
|
||||||
"healthCheckPath": "/healthcheck",
|
"healthCheckPath": "/healthcheck",
|
||||||
"httpPort": 8000,
|
"httpPort": 8000,
|
||||||
"addons": {
|
"addons": {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
This app packages Syncthing <upstream>1.11.1</upstream>.
|
This app packages Syncthing <upstream>1.17.0</upstream>.
|
||||||
|
|
||||||
Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet.
|
Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet.
|
||||||
|
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
|
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
|
||||||
|
|
||||||
ARG VERSION=1.11.1
|
|
||||||
|
|
||||||
RUN mkdir -p /app/code
|
RUN mkdir -p /app/code
|
||||||
WORKDIR /app/code
|
WORKDIR /app/code
|
||||||
|
|
||||||
|
ARG VERSION=1.17.0
|
||||||
|
|
||||||
RUN wget https://github.com/syncthing/syncthing/releases/download/v${VERSION}/syncthing-linux-amd64-v${VERSION}.tar.gz -O - | tar -xz -C /app/code --strip-components=1
|
RUN wget https://github.com/syncthing/syncthing/releases/download/v${VERSION}/syncthing-linux-amd64-v${VERSION}.tar.gz -O - | tar -xz -C /app/code --strip-components=1
|
||||||
|
|
||||||
# add supervisor configs
|
# add supervisor configs
|
||||||
|
2
start.sh
2
start.sh
@@ -26,4 +26,4 @@ sed -e 's,<gui .*>,<gui enabled="true" tls="false" debugging="false">,' -i /app/
|
|||||||
chown -R cloudron:cloudron /app/data /run/syncthing
|
chown -R cloudron:cloudron /app/data /run/syncthing
|
||||||
|
|
||||||
echo "Starting supervisor"
|
echo "Starting supervisor"
|
||||||
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i GitLab
|
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i syncthing
|
||||||
|
745
test/package-lock.json
generated
745
test/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,9 +9,9 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromedriver": "^86.0.0",
|
"chromedriver": "^91.0.1",
|
||||||
"expect.js": "^0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mocha": "^8.2.1",
|
"mocha": "^9.0.2",
|
||||||
"selenium-webdriver": "^3.6.0",
|
"selenium-webdriver": "^3.6.0",
|
||||||
"superagent": "^6.1.0"
|
"superagent": "^6.1.0"
|
||||||
}
|
}
|
||||||
|
48
test/test.js
48
test/test.js
@@ -1,12 +1,13 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
'use strict';
|
/* jshint esversion: 8 */
|
||||||
|
|
||||||
/* global describe */
|
/* global describe */
|
||||||
/* global before */
|
/* global before */
|
||||||
/* global after */
|
/* global after */
|
||||||
/* global it */
|
/* global it */
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
require('chromedriver');
|
require('chromedriver');
|
||||||
|
|
||||||
var execSync = require('child_process').execSync,
|
var execSync = require('child_process').execSync,
|
||||||
@@ -64,6 +65,10 @@ describe('Application life cycle test', function () {
|
|||||||
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
|
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
|
||||||
return browser.get('https://' + app.fqdn);
|
return browser.get('https://' + app.fqdn);
|
||||||
});
|
});
|
||||||
|
}).then(function () {
|
||||||
|
return browser.sleep(5000);
|
||||||
|
}).then(function () {
|
||||||
|
return browser.get('https://' + app.fqdn);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return waitForElement(By.xpath('//span[text()="Actions"]'));
|
return waitForElement(By.xpath('//span[text()="Actions"]'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
@@ -95,6 +100,10 @@ describe('Application life cycle test', function () {
|
|||||||
|
|
||||||
function checkFolder(callback) {
|
function checkFolder(callback) {
|
||||||
browser.get('https://' + app.fqdn).then(function () {
|
browser.get('https://' + app.fqdn).then(function () {
|
||||||
|
return browser.sleep(5000);
|
||||||
|
}).then(function () {
|
||||||
|
return browser.get('https://' + app.fqdn);
|
||||||
|
}).then(function () {
|
||||||
return browser.wait(until.elementLocated(By.xpath(`//span[text()="${FOLDER}"]`)), TEST_TIMEOUT);
|
return browser.wait(until.elementLocated(By.xpath(`//span[text()="${FOLDER}"]`)), TEST_TIMEOUT);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
callback();
|
callback();
|
||||||
@@ -141,19 +150,19 @@ describe('Application life cycle test', function () {
|
|||||||
it('can add folder', addFolder);
|
it('can add folder', addFolder);
|
||||||
|
|
||||||
it('backup app', function () { execSync('cloudron backup create --app ' + app.id, EXEC_ARGS); });
|
it('backup app', function () { execSync('cloudron backup create --app ' + app.id, EXEC_ARGS); });
|
||||||
it('restore app', function () { execSync('cloudron restore --app ' + app.id, EXEC_ARGS); });
|
it('restore app', async function () {
|
||||||
|
await browser.get('about:blank');
|
||||||
|
execSync('cloudron restore --app ' + app.id, EXEC_ARGS);
|
||||||
|
});
|
||||||
|
|
||||||
it('wait', wait);
|
it('wait', wait);
|
||||||
|
|
||||||
it('can load page', loadPage);
|
it('can load page', loadPage);
|
||||||
it('can check folder', checkFolder);
|
it('can check folder', checkFolder);
|
||||||
|
|
||||||
it('move to different location', function (done) {
|
it('move to different location', async function () {
|
||||||
// ensure we don't hit NXDOMAIN in the mean time
|
await browser.get('about:blank');
|
||||||
browser.get('about:blank').then(function () {
|
execSync(`cloudron configure --location ${LOCATION}2 --app ${app.id}`, EXEC_ARGS);
|
||||||
execSync(`cloudron configure --location ${LOCATION}2 --app ${app.id}`, EXEC_ARGS);
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
it('can get app information', getAppInfo);
|
it('can get app information', getAppInfo);
|
||||||
|
|
||||||
@@ -163,11 +172,9 @@ describe('Application life cycle test', function () {
|
|||||||
it('can check folder', checkFolder);
|
it('can check folder', checkFolder);
|
||||||
it('can remove folder', removeFolder);
|
it('can remove folder', removeFolder);
|
||||||
|
|
||||||
it('uninstall app', function (done) {
|
it('uninstall app', async function () {
|
||||||
browser.get('about:blank').then(function () {
|
await browser.get('about:blank');
|
||||||
execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS);
|
execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS);
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// test update
|
// test update
|
||||||
@@ -176,14 +183,15 @@ describe('Application life cycle test', function () {
|
|||||||
it('wait', wait);
|
it('wait', wait);
|
||||||
it('can load page', loadPage);
|
it('can load page', loadPage);
|
||||||
it('can add folder', addFolder);
|
it('can add folder', addFolder);
|
||||||
it('can update', function () { execSync('cloudron update --app ' + LOCATION, EXEC_ARGS); });
|
it('can update', async function () {
|
||||||
|
await browser.get('about:blank');
|
||||||
|
execSync('cloudron update --app ' + LOCATION, EXEC_ARGS);
|
||||||
|
});
|
||||||
it('wait', wait);
|
it('wait', wait);
|
||||||
it('can check folder', checkFolder);
|
it('can check folder', checkFolder);
|
||||||
|
|
||||||
it('uninstall app', function (done) {
|
it('uninstall app', async function () {
|
||||||
browser.get('about:blank').then(function () {
|
await browser.get('about:blank');
|
||||||
execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS);
|
execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS);
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user