-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusage_scenario_files.yml
More file actions
69 lines (63 loc) · 1.83 KB
/
Copy pathusage_scenario_files.yml
File metadata and controls
69 lines (63 loc) · 1.83 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
---
name: Nextcloud - Files - MariaDB - Firefox
author: Arne Tarara <arne@green-coding.io> + Didi Hoffmann <didi@green-coding.io>
description: Nexcloud Files Scenario
compose-file: !include compose.yml
custom_metrics:
file_share:
unit: File Share
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
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__
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: Files
container: gcb-playwright
commands:
- type: console
command: python3 /tmp/repo/playwright-files/files.py firefox
note: Creating event
read-notes-stdout: true