Compatibility With ARM64 System

I need the orthanc-plugins docker image to be compatible with arm64, so I tried to build a docker image with an arm64 base. But I ran into an error showing me that at least one plugin was not compatible with arm64:

./download-plugins.sh: line 96: …/UnitTests-DicomWeb: cannot execute binary file: Exec format error

I found the plugin at https://orthanc.uclouvain.be/downloads/linux-standard-base/orthanc-dicomweb/mainline/UnitTests according to the plugins script.

Where can I find the source code for the plugins so that I can compile them to be compatible with arm64 so that I can build a compatible docker image?

Oracle has free Ampere arm64 systems where I can have up to 4 VCPU and 24 GB RAM. The other free ones are amd64 but only 1 VCPU and 1 GB RAM. So as you can imagine, it’s very laggy to run ohif/orthanc.

Hello

There’s a thread about this already. Kindly check

Please note that thanks to the orthancteam orthanc images current support Arm. You can also find that here.

Ps:

I just tried orthancteam/orthanc docker container, and I get Unable to query for studies at this time. Check your data source configuration or network connection when I try to log into Ohif Viewer. I am trying this setup, but with ohif/app instead of ohif/viewer (and a modified .js file). I built the ohif/app to be arm64 compatible.

I checked the orthanc logs, and found:

W0418 17:12:09.867714             MAIN main.cpp:913] Loading plugin(s) from: /usr/local/share/orthanc/plugins
E0418 17:12:09.867779             MAIN PluginsManager.cpp:234] Inexistent path to plugins: /usr/local/share/orthanc/plugins

Nothing appears abnormal in the ohif container logs.

Not sure why I didn’t think of this sooner, but I searched Docker Hub for an arm64 image of orthanc-plugins and found a few. Tried one, and it worked. Everything is up and running on arm64 perfectly.

I would still like to know where I can find the source code for the plugins so that I can compile them and then build an updated docker image. I plan on putting the plugins on my github so others can use them to build updated images, if they want to. I tried searching around in the working docker container of the arm64 image, but I can’t find all the plugins.

Hey @threehappypenguins

You can try this setup

Here is the code: orthanc-ohif: log
And the build instructions: OHIF plugin — Orthanc Book documentation

BTW, orthancteam/orthanc do contain exactly the same version as jodogne/orthanc-plugins and they do work on ARM64.

Yes, I had found those logs previously, but when I click on the links, it shows me the changes and not the whole code. I don’t really understand the website… it’s probably something obvious, but I don’t see it.

https://orthanc.uclouvain.be/book/developers/repositories.html

hg clone https://orthanc.uclouvain.be/hg/orthanc-ohif/