2023-06-15 16:43:26 +02:00
---
name : Nextcloud - Docs
author : Danilo Jesic <danilo@green-coding.berlin>
version : 1
2023-06-16 17:35:53 +02:00
description : Installs the official Nextcloud image and collaborates on a document. Uses a playwright script running Chromium 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.
2023-06-15 16:43:26 +02:00
compose-file : !include compose.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
2023-07-13 09:25:04 +02:00
# volumes:
# - /tmp/.X11-unix:/tmp/.X11-unix
# environment:
# DISPLAY: ":0"
2023-06-15 16:43:26 +02:00
# 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 :
2023-06-21 10:56:10 +02:00
- name : Install Nextcloud
2023-06-15 16:43:26 +02:00
container : gcb-playwright
commands :
- type : console
command : python3 /tmp/nextcloud_install.py
note : Installing Nextcloud
read-notes-stdout : true
2023-07-11 16:02:50 +02:00
log-stdout : true
log-stderr : true
2023-06-21 10:56:10 +02:00
- name : Create User
container : gcb-playwright
commands :
2023-06-15 16:43:26 +02:00
- type : console
command : python3 /tmp/nextcloud_create_user.py
note : Create user
read-notes-stdout : true
2023-07-11 16:02:50 +02:00
log-stdout : true
log-stderr : true
2023-06-21 10:56:10 +02:00
- name : Create doc and share
container : gcb-playwright
commands :
2023-06-15 16:43:26 +02:00
- type : console
command : python3 /tmp/nextcloud_create_doc_and_share.py
note : Create document and share
read-notes-stdout : true
2023-07-11 16:02:50 +02:00
log-stdout : true
log-stderr : true
2023-06-21 10:56:10 +02:00
- name : Collaborate
container : gcb-playwright
commands :
2023-06-15 16:43:26 +02:00
- type : console
command : python3 /tmp/nextcloud_docs_collaboration.py
note : dev
read-notes-stdout : true
2023-07-11 16:02:50 +02:00
log-stdout : true
log-stderr : true