diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..86705dc --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +tests +dist +node_modules +.github diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bbc03a9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM owncloudci/nodejs:20 AS stage + +WORKDIR /extension + +COPY . . +RUN pnpm install +RUN pnpm build + +FROM alpine:3.20 +WORKDIR /app +COPY --from=stage /extension/dist ./ diff --git a/README.md b/README.md index 6e52309..f08fc9f 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,23 @@ It allows users to: Apps directory is set using the `WEB_ASSET_APPS_PATH` environment variable. +### App Installation With [oCIS Deployment](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full) + +1. Copy [`deployments/mdpresentation-viewer.yml`](./deployments/mdpresentation-viewer.yml) into the [web_extensions](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full/web_extensions) +subfolder of oCIS full deployment example. +2. Add `MDPRESENTATION_VIEWER=:web_extensions/mdpresentation-viewer.yml` to the `## oCIS Web Extensions ##` section of the `.env` file of your installation (file is located in `deployments/examples/ocis_full`) and append it to the `COMPOSE_FILE` variable. + ```env + ## oCIS Web Extensions ## + MDPRESENTATION_VIEWER=:web_extensions/mdpresentation-viewer.yml + + COMPOSE_FILE=docker-compose.yml${...}${MDPRESENTATION_VIEWER:-} + ``` +3. Run `docker compose up` to run oCIS with the extensions + + oCIS URL: [ocis.owncloud.test](https://ocis.owncloud.test) + + See the [docs](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full). + ## Creating Presentation Please, refer to the [documentation](https://revealjs.com/markdown/) for more information about creating a presentation using markdown. diff --git a/deployments/mdpresentation-viewer.yml b/deployments/mdpresentation-viewer.yml new file mode 100644 index 0000000..e07731a --- /dev/null +++ b/deployments/mdpresentation-viewer.yml @@ -0,0 +1,14 @@ +--- +services: + ocis: + depends_on: + mdpresentation-viewer: + condition: service_completed_successfully + + mdpresentation-viewer: + image: jankaritech/mdpresentation-viewer:2.0.0 + volumes: + - ocis-apps:/apps + entrypoint: + - /bin/sh + command: ["-c", "cp -R /app/* /apps"] diff --git a/tests/e2e/pageObjects/OcisPage.js b/tests/e2e/pageObjects/OcisPage.js index ecad2fb..3e87a34 100644 --- a/tests/e2e/pageObjects/OcisPage.js +++ b/tests/e2e/pageObjects/OcisPage.js @@ -7,7 +7,7 @@ class Ocis { this.loginFormSelector = '.oc-login-form' this.usernameInputFieldSelector = '#oc-login-username' this.passwordInputFieldSelector = '#oc-login-password' - this.loginBtnSelector = '.jss8 .oc-button-primary' + this.loginBtnSelector = 'button[type="submit"]' this.filesContainerSelector = '#files-view' this.contextMenuBtnSelector = '.resource-table-btn-action-dropdown' this.openInPresentationViewerBtnSelector = '.oc-files-actions-presentation-viewer-trigger'