ERROR Orthanc S3 Plugin in Docker

Hi all!
I compiled libOrthancAwsS3Storage.so, and trying to load it into Docker image jodogne/orthanc-python:1.11.0.

Upon docker run I’m getting this error libboost_filesystem.so.1.71.0:

E0718 08:03:55.374685 SharedLibrary.cpp:98] dlopen(/usr/local/share/orthanc/plugins/libOrthancAwsS3Storage.so) failed: Error libboost_filesystem.so.1.71.0: cannot open shared object file: No such file or directory

I understand something is missing from the image, I tried adding RUN command to the Dockerfile to install libboost-all-dev

but so far no luck!
Any help would be greatly appreceated!

Thanks, anat

This is currently my Dockerfile - all the RUN stuff were added to accommodate the error with no luck

Hello,

Your “libOrthancAwsS3Storage.so” is incompatible with “jodogne/orthanc-python:1.11.0” because this is not a LSB (Linux Standard Base) binary.

You’ll have to use the Osimis Docker images:
https://book.orthanc-server.com/users/docker-osimis.html

Regards,
Sébastien-

Thanks Sébastien!!

I got the source code and followed the instructions from the Orthanc book here https://book.orthanc-server.com/plugins/object-storage.html,
what adjustments do I need to make to my plugin LSB?

Also can you give your 2 cents about differences between Osimis dockers and jodogne dockers?

Still no luck!

updated Dockerfile:

FROM osimis/orthanc:22.7.0-full
RUN apt-get update && apt-get install -qy libjsoncpp-dev
COPY orthanc.json /etc/orthanc/orthanc.json
COPY libOrthancAwsS3Storage.so /usr/local/share/orthanc/plugins/libOrthancAwsS3Storage.so

E0718 12:50:48.666387 SharedLibrary.cpp:98] dlopen(/usr/local/share/orthanc/plugins/libOrthancAwsS3Storage.so) failed: Error libjsoncpp.so.1: cannot open shared object file: No such file or directory

I don’t use that plug-in, but I believe it is bundled with the Osimis Docker Images and is found in:

/usr/share/orthanc/plugins-available in the Docker container.

You should not need to copy the .so, you should only need to enable it in the docker-compose.yml file if you are using that method.

See: https://book.orthanc-server.com/users/docker-osimis.html?highlight=osimis%20docker#plugins:

AWS_S3_STORAGE_PLUGIN_ENABLED

Stephen D. Scotti

1- “libOrthancAwsS3Storage.so” is already part of “osimis/orthanc”, so you don’t have to install them. As explained in the documentation, you must simply set the environment variable “AWS_S3_STORAGE_PLUGIN_ENABLED” to “true”:
https://book.orthanc-server.com/users/docker-osimis.html

You can find “Orthanc setup samples”, including for AWS, at the following address:
https://bitbucket.org/osimis/orthanc-setup-samples/

2- For a description of the differences between “jodogne/orthanc” and “osimis/orthanc”, also check out the Orthanc Book:

https://book.orthanc-server.com/users/docker.html