Skip to content

Commit

Permalink
feat(nextcloud_test): Add presets for drop_account
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Feb 29, 2024
1 parent 80a1fdf commit cea5d73
Show file tree
Hide file tree
Showing 25 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/nextcloud_test/bin/generate_presets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Future<void> main() async {
'notes',
'spreed',
'uppush',
'drop_account',
];

final httpClient = HttpClient();
Expand Down
7 changes: 7 additions & 0 deletions packages/nextcloud_test/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ FROM apps as spreed
ARG SPREED_URL
RUN curl -L "$SPREED_URL" | tar -xz -C /

FROM apps as drop_account
ARG DROP_ACCOUNT_URL
RUN curl -L "$DROP_ACCOUNT_URL" | tar -xz -C /

FROM nextcloud

COPY --from=news /news /usr/src/nextcloud/apps/news
Expand All @@ -56,3 +60,6 @@ RUN ./occ app:enable uppush
COPY --from=spreed /spreed /usr/src/nextcloud/apps/spreed
RUN ./occ app:enable spreed
RUN ./occ talk:turn:add turn,turns staticauth.openrelay.metered.ca:443 udp,tcp --secret openrelayprojectsecret

COPY --from=drop_account /drop_account /usr/src/nextcloud/apps/drop_account
RUN ./occ app:enable drop_account
6 changes: 6 additions & 0 deletions packages/nextcloud_test/docker/presets/drop_account/2.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SERVER_VERSION=27.1.6
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v17.1.5/spreed-v17.1.5.tar.gz
UPPUSH_URL=https://codeberg.org/NextPush/uppush/archive/1.4.2.tar.gz
6 changes: 6 additions & 0 deletions packages/nextcloud_test/docker/presets/drop_account/2.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SERVER_VERSION=28.0.2
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.4.0.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/25.0.0-alpha4/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v18.0.3/spreed-v18.0.3.tar.gz
UPPUSH_URL=https://codeberg.org/NextPush/uppush/archive/1.4.2.tar.gz
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/news/21.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=26.0.11
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/21.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v16.0.10/spreed-v16.0.10.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/news/21.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=26.0.11
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/21.1.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v16.0.10/spreed-v16.0.10.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/news/21.2
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=26.0.11
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/21.2.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v16.0.10/spreed-v16.0.10.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/news/22.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=27.1.6
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/22.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v17.1.5/spreed-v17.1.5.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/news/23.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=27.1.6
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/23.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v17.1.5/spreed-v17.1.5.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/news/24.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=27.1.6
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v17.1.5/spreed-v17.1.5.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/news/25.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=28.0.2
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.4.0.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/25.0.0-alpha4/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v18.0.3/spreed-v18.0.3.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/notes/4.7
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=27.1.6
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.7.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v17.1.5/spreed-v17.1.5.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/notes/4.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=28.0.2
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.4.0.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/25.0.0-alpha4/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.8.1/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v18.0.3/spreed-v18.0.3.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/notes/4.9
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=28.0.2
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.4.0.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/25.0.0-alpha4/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v18.0.3/spreed-v18.0.3.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/server/26.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=26.0.11
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v16.0.10/spreed-v16.0.10.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/server/27.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=27.0.2
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v17.1.5/spreed-v17.1.5.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/server/27.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=27.1.6
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v17.1.5/spreed-v17.1.5.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/server/28.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=28.0.2
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.4.0.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/25.0.0-alpha4/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v18.0.3/spreed-v18.0.3.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/spreed/16.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=26.0.11
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v16.0.10/spreed-v16.0.10.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/spreed/17.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=27.1.6
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v17.0.3/spreed-v17.0.3.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/spreed/17.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=27.1.6
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v17.1.5/spreed-v17.1.5.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/spreed/18.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=28.0.2
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.4.0.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/25.0.0-alpha4/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v18.0.3/spreed-v18.0.3.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/uppush/1.3
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=26.0.11
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.3.2.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/24.0.0/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v16.0.10/spreed-v16.0.10.tar.gz
Expand Down
1 change: 1 addition & 0 deletions packages/nextcloud_test/docker/presets/uppush/1.4
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
SERVER_VERSION=28.0.2
DROP_ACCOUNT_URL=https://packages.framasoft.org/projects/nextcloud-apps/drop-account/drop_account-2.4.0.tar.gz
NEWS_URL=https://github.com/nextcloud/news/releases/download/25.0.0-alpha4/news.tar.gz
NOTES_URL=https://github.com/nextcloud-releases/notes/releases/download/v4.9.2/notes.tar.gz
SPREED_URL=https://github.com/nextcloud-releases/spreed/releases/download/v18.0.3/spreed-v18.0.3.tar.gz
Expand Down
3 changes: 3 additions & 0 deletions tool/generate-nextcloud-test-presets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ cd "$(dirname "$0")/.."
rm docker/presets/notes/4.4
rm docker/presets/notes/4.5
rm docker/presets/notes/4.6

# 2.2 does not expose the capability and 2.3 is also compatible with 26 so it can be easily upgraded.
rm docker/presets/drop_account/2.2
)

0 comments on commit cea5d73

Please sign in to comment.