Hi, I'm trying to run Orthanc indside a docker. I have followed the tutorial
in Orthanc-book and the basic exmaple runs fine. However I'm having troubles to
understand how I can provide lua-scripts to Orthanc when it is running inside a
Docker. I can specify the lua-script paths in orthanc.json file and give that as
parameter when starting orthanc-container as was explained in tutorial. However
I do not understand how the container can found my lua-scripts which are not inside the container? Is it possible to give the lua-script as paramater when starting Orthanc-container or should I create my own container where I add the required lua scripts to working directory and then start the Orthanc from "command-line inside the docker"?
You’ll have to create your own container and copy your lua script during the build process.
I recommend you to have a look at this sample: https://bitbucket.org/osimis/orthanc-setup-samples/src/master/docker/transcode-middleman/?at=master
check the orthanc-middleman folder, it contains a sample of a custom image with Orthanc and a lua script
Hi, thanks for the reply. I managed to get forward by mapping my local lua-script
to container's /etc/orthanc folder as the same way the orthanc.json is mapped. However I'm facing the same problem as other users that if I try to modify the "StudyInstance" tag I got an error that I have to use the "Force": true flag. I noticed that you pointed in an another thread that the "Force": true flag can be posted in http:request as explained in http://book.orthanc-server.com/users/anonymization.html#id3 . However this does not explain how the "Force": true flag is set in lua-script?
Hello,
Please post your Lua script so that support can be provided.
Regards,
Sébastien-
Hi, this problem was solved by adding Command['Force'] = true on the modification rest-api call.