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

Build of DICOM-Viewer in own Nextcloud Docker container fails #125

Open
PReichetanz opened this issue Sep 6, 2024 · 0 comments
Open

Build of DICOM-Viewer in own Nextcloud Docker container fails #125

PReichetanz opened this issue Sep 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@PReichetanz
Copy link

Describe the bug
When trying to install the DICOM-Viewer in a docker container of Nextcloud, the described build steps fail due to an error with @ohif/app:build:viewer:nextcloud. It is possible to enable the Dicom-Viewer app (without downloading it, so the app itself is available), but .dcm-files are not opened, only downloaded.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a docker container for Nextcloud as described here, I used the compose.yml example described here.
  2. Start container and enter shell with docker compose up -d and docker exec -it <containername> bash
  3. Install git: apt-get -y update + apt-get -y install git
  4. Install node@20 and npm via nvm as described in the homepage
  5. Install yarn npm install yarn
  6. Clone DICOM-Viewer app: cd apps, git clone https://github.com/ayselafsar/dicomviewer.git
  7. Replace empty acanio-viewer folder with clone of the repo: rm -rf acanio-viewer, git clone https://github.com/acanio/acanio-viewer.git
  8. Run build of DICOM-Viewer: npm run build (fails with exit code 1, see screenshots below)
  9. Open Nextcloud on localhost:8080, login and enable the DICOM Viewer app.
  10. Upload a .dcm-file and try to open it in browser.

Expected behavior
I can build the DICOM Viewer package, enable the DICOM-Viewer app in my Nextcloud and it displays .dcm files in the browser as intended.

Screenshots
Terminal output:
Screenshot 2024-09-06 at 16 12 19

Trying to open a .dcm file after enabling the app shows this error message:
Screenshot 2024-09-06 at 15 57 29

Client details:

  • OS: MacOS Sonoma 14.6.1
  • Device: Safari Desktop
  • Docker Desktop Version 4.33.0
  • Compose: v2.29.1-desktop.1
  • Engine: 27.1.1
Server details

DICOM viewer app version: 2.1.2

Operating system: Linux 6.10.0-linuxkit

Web server:

Database:

PHP version:

Nextcloud version: Nextcloud Hub 8 (29.0.6)

Logs

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@PReichetanz PReichetanz added the bug Something isn't working label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant