-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusage_scenario_talk.yml
More file actions
93 lines (86 loc) · 2.74 KB
/
Copy pathusage_scenario_talk.yml
File metadata and controls
93 lines (86 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
name: Nextcloud - Talk - MariaDB - Firefox
author: Arne Tarara <arne@green-coding.io> + Didi Hoffmann <didi@green-coding.io>
description: Nexcloud Talk Scenario
compose-file: !include compose.yml
custom_metrics:
talk_message:
unit: Character / Participant
services:
gcb-playwright:
image: greencoding/gcb_playwright:v21
depends_on:
app:
condition: service_healthy
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment:
DISPLAY: ":0" # for debugging in non-headless mode
HOST_URL: https://ncs
command: [ "tail", "-f", "/dev/null" ] # keep container running
# this code will never support local filenames
# as it anyway would require a change in the usage scenario file
# since that is the case a local dev could also just mount a local folder which is already
# a supported feature
relations:
server: # will be put in /tmp/relations/server
url: https://github.com/nextcloud/server
branch: __GMT_VAR_BRANCH__
commit_hash: __GMT_VAR_COMMIT_HASH__
spreed:
url: https://github.com/nextcloud/spreed
branch: main
# commit_hash: ghhkshfkjsdnfk # no commit means latest
flow:
- name: Patch config
container: app
hidden: true
commands:
- type: console
shell: bash
command: |
cat <<'EOF' > config/config.php
<?php
$CONFIG = array (
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'https://ncs',
'trusted_proxies' =>
array (
0 => 'ncs',
),
'trusted_domains' =>
array (
0 => 'ncs',
),
'upgrade.disable-web' => true,
'instanceid' => 'ocvb0i3uw47a',
);
EOF
- name: Install Nextcloud
container: gcb-playwright
hidden: true
commands:
- type: console
command: python3 /tmp/repo/playwright-files/install.py firefox
- name: Install Apps
container: app
hidden: true
commands:
- type: console
command: |
mkdir /var/www/html/apps/spreed/
cp -r /tmp/relations/spreed/* /var/www/html/apps/spreed/
chown -R www-data:www-data /var/www/html/apps/spreed/
cd /var/www/html/apps/spreed/
sudo -u www-data composer install --no-dev --no-scripts
sudo -u www-data npm ci
sudo -u www-data make build-js-production
sudo -u www-data php /var/www/html/occ app:enable spreed
shell: bash
- name: Talk
container: gcb-playwright
commands:
- type: console
command: python3 /tmp/repo/playwright-files/talk.py firefox
note: Creating event
read-notes-stdout: true