-
Notifications
You must be signed in to change notification settings - Fork 5
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
build: add dockerfile and deployment docs #33
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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 ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,31 @@ This is an extension for [ownCloud web](https://github.com/owncloud/web) for vie | |
|
||
## Installation | ||
|
||
1. Download the zip file from the [releases page](https://github.com/saw-jan/web-app-3dmodel-viewer/releases) | ||
1. Download the zip file from the [releases page](https://github.com/saw-jan/web-app-3dmodel-viewer/releases) | ||
2. Extract the zip file to the apps directory of the oCIS server, [which is set using the `WEB_ASSET_APPS_PATH` environment variable](https://doc.owncloud.com/ocis/next/deployment/webui/webui-customisation.html#extend-web-ui-with-apps) | ||
|
||
### App Installation With [oCIS Deployment](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full) | ||
|
||
1. Copy [`deployments/3dviewer.yaml`](./deployments/3dviewer.yaml) 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 `MODEL_3D_VIEWER=:web_extensions/3dviewer.yaml` to the `## oCIS Web Extensions ##` section of the `.env` file of your installation (file is located in [deployments/examples/ocis_full](https://github.com/owncloud/ocis/tree/master/deployments/examples/ocis_full)) and append it to the `COMPOSE_FILE` variable. | ||
|
||
```env | ||
## oCIS Web Extensions ## | ||
MODEL_3D_VIEWER=:web_extensions/3dviewer.yaml | ||
|
||
COMPOSE_FILE=docker-compose.yml${...}${3D_VIEWER:-} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @saw-jan variable name needs to be updated there too |
||
``` | ||
|
||
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) for more information. | ||
|
||
## Build and Run for development | ||
|
||
For building and running the app from the code base, follow these steps: | ||
For building and running the app from the code base, follow these steps: | ||
|
||
1. Install the dependencies | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
services: | ||
ocis: | ||
depends_on: | ||
3dviewer: | ||
condition: service_completed_successfully | ||
|
||
3dviewer: | ||
image: sawjan/3dviewer:0.1.0 | ||
volumes: | ||
- ocis-apps:/apps | ||
entrypoint: | ||
- /bin/sh | ||
command: ['-c', 'cp -R /app/* /apps'] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name cannot start with a number