mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-16 16:14:47 +02:00
Removed files from root to make it less noisy & Added all energy related files to energy-tests
This commit is contained in:
parent
77ff0c34bf
commit
3281e3e344
33 changed files with 1267 additions and 26 deletions
73
energy-tests/usage_scenario-mariadb-docs-firefox.yml
Normal file
73
energy-tests/usage_scenario-mariadb-docs-firefox.yml
Normal file
|
@ -0,0 +1,73 @@
|
|||
---
|
||||
name: Nextcloud - MariaDB - Docs - Firefox
|
||||
author: Danilo Jesic <danilo@green-coding.berlin>
|
||||
description: Installs the official Nextcloud image with a MariaDB and collaborates on a document. Uses a playwright script running Firefox to create an admin account, install the recommended apps. Then creates a new user, creates a document and shares it. Finally, works on the document adding text from two browsers.
|
||||
compose-file: !include compose-mariadb.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_user.py /tmp/nextcloud_create_user.py
|
||||
- cp /tmp/repo/nextcloud_create_doc_and_share.py /tmp/nextcloud_create_doc_and_share.py
|
||||
- cp /tmp/repo/nextcloud_docs_collaboration.py /tmp/nextcloud_docs_collaboration.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: Create User
|
||||
container: gcb-playwright
|
||||
commands:
|
||||
- type: console
|
||||
command: python3 /tmp/nextcloud_create_user.py firefox
|
||||
note: Create user
|
||||
read-notes-stdout: true
|
||||
log-stdout: true
|
||||
log-stderr: true
|
||||
- name: Create doc and share
|
||||
container: gcb-playwright
|
||||
commands:
|
||||
- type: console
|
||||
command: python3 /tmp/nextcloud_create_doc_and_share.py firefox
|
||||
note: Create document and share
|
||||
read-notes-stdout: true
|
||||
log-stdout: true
|
||||
log-stderr: true
|
||||
- name: Collaborate
|
||||
container: gcb-playwright
|
||||
commands:
|
||||
- type: console
|
||||
command: python3 /tmp/nextcloud_docs_collaboration.py firefox
|
||||
note: dev
|
||||
read-notes-stdout: true
|
||||
log-stdout: true
|
||||
log-stderr: true
|
Loading…
Add table
Add a link
Reference in a new issue