0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-15 19:05:09 +01:00
nextcloud-docker/energy-tests/usage_scenario-sqlite-event-firefox.yml
2024-01-29 08:27:27 +01:00

37 lines
1.3 KiB
YAML

---
name: Nextcloud - SQLite - Event - Firefox
author: Danilo Jesic <danilo@green-coding.berlin>
description: Installs the official Nextcloud image with a SQLite and creates a calendar event. Uses a playwright script running Firefox to create an admin account, install the recommended apps and then create an event.
compose-file: !include compose-sqlite.yml
services:
gcb-playwright:
image: greencoding/gcb_playwright:v5
depends_on:
nc:
condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
# volumes:
# - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment:
DISPLAY: ":0" # for debugging in non-headless mode
flow:
- name: Install Nextcloud
container: gcb-playwright
commands:
- type: console
command: python3 /tmp/repo/nextcloud_install.py firefox
note: Installing Nextcloud
read-notes-stdout: true
log-stdout: true
log-stderr: true
- name: Login and create event
container: gcb-playwright
commands:
- type: console
command: python3 /tmp/repo/nextcloud_create_event.py firefox
note: Creating event
read-notes-stdout: true
read-sci-stdout: true
log-stdout: true
log-stderr: true