Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added dockerfile for ocis deployment #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tests
dist
node_modules
.github
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:alpine AS stage

WORKDIR /extension

COPY . .
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm build

FROM node:alpine
WORKDIR /app
COPY --from=stage /extension/dist ./
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,11 @@ docker compose up
```

oCIS URL: [localhost:9200](https://localhost:9200)


### Adding Md-Viewer to the oCIS Deployment Example

1. Navigate to the `deployments/examples/ocis_full/web_extensions` folder of your installation and copy [`mdviewer.yml`] into the [`web_extensions`](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full/web_extensions) subfolder.

2. Add `MDVIEWER=:web_extensions/mdviewer.yml` to the `## oCIS Web Extensions ##` section of the `.env` file of your installation (file is located in `deployments/examples/ocis_full`).\ Add that variable in the `COMPOSE_FILE` variable at the last line.
3. Run `docker compose up` to run the extension with oCIS
S-Panta marked this conversation as resolved.
Show resolved Hide resolved
16 changes: 16 additions & 0 deletions mdviewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

---
services:
ocis:
depends_on:
md-viewer:
condition: service_completed_successfully

md-viewer:
image: jankaritechnepal/md-viewer:latest
S-Panta marked this conversation as resolved.
Show resolved Hide resolved
user: root
volumes:
- ocis-apps:/apps
entrypoint:
- /bin/sh
command: ["-c", "cp -R /app/* /apps"]
Loading