I've been working with an older Docker version of the Osimis-orthanc build that was built on top of the Trusty Ubuntu Docker image.
I've developed a fairly sophisticated Lua server side script and in the process have installed additional Lua models vai the Debian apt-get system.
Unfortunately, I'm running into problems with the latest Osimis-Orthanc (I'm looking at osimis/orthanc:18.1.4) that's built on top of the Xenial Ubuntu image.
I can apt-get my additional lua modules (lua-sql-postgres and lua-socket) and they appear to install without problems.
However, at run time, when Orthanc attempts to load the modules (ex. socket.smtp), it is searching in the wrong path and generates a lot of errors:
no field package.preload['socket.smtp']
no file './socket/smtp.lua'
no file '/usr/local/share/lua/5.1/socket/smtp.lua'
no file '/usr/local/share/lua/5.1/socket/smtp/init.lua'
no file '/usr/local/lib/lua/5.1/socket/smtp.lua'
no file '/usr/local/lib/lua/5.1/socket/smtp/init.lua'
no file './socket/smtp.so'
no file '/usr/local/lib/lua/5.1/socket/smtp.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './socket.so'
no file '/usr/local/lib/lua/5.1/socket.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
Now, according to both the Trusty and Xenial package descriptions, those files are not installed in those locations. I can confirm that on working Orthancs built on Trusty Docker images, the lua files are all installed in the locations indicated
here.
I'm left wondering whether something has changed perhaps in the environmental search paths. The Orthanc Lua engine cannot apparently see the additional lua modules I've installed under Xenial, but it had no problem seeing them under the Trusty system.
Any ideas? I can't tell if this is a Xenial configuration issue or whether I'm misunderstanding something about running Orthanc on Xenial.
Thanks,
John.