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-postgres-event-firefox.yml
2023-08-04 15:35:26 +02:00

54 lines
1.5 KiB
YAML

---
name: Nextcloud - Postgres - Event - Firefox
author: Danilo Jesic <danilo@green-coding.berlin>
description: Installs the official Nextcloud image with a Postgres DB and creates a calendar event. Uses a playwright script running Firefox to create an admin account, install the recommended apps and then create a calendar event.
compose-file: !include compose-postgres.yml
services:
gcb-playwright:
image: greencoding/gcb_playwright
setup-commands:
- cp /tmp/repo/nextcloud_install.py /tmp/nextcloud_install.py
- cp /tmp/repo/nextcloud_create_event.py /tmp/nextcloud_create_event.py
networks:
- nextcloud-setup-network
# volumes:
# - /tmp/.X11-unix:/tmp/.X11-unix
# environment:
# DISPLAY: ":0"
# We don't need the volumes are we don't want to persist any data
db:
volumes: []
networks:
- nextcloud-setup-network
nc:
volumes: []
networks:
- nextcloud-setup-network
networks:
nextcloud-setup-network:
flow:
- name: Install Nextcloud
container: gcb-playwright
commands:
- type: console
command: python3 /tmp/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/nextcloud_create_event.py firefox
note: Creating event
read-notes-stdout: true
read-sci-stdout: true
log-stdout: true
log-stderr: true