PDA

查看完整版本 : MATLAB on a Docker windows container


poster
2019-11-26, 19:22
<p>We have a some WCF services which we are trying to move to a Docker container. We are using <code>mcr.microsoft.com/dotnet/framework/wcf</code> as our base image and have been able to setup the WCF services.</p>

<p>But one of the services use a MATLAB library compiled to run on MCR 8.2 64 bit version. Whenever the service is hit, it generates an exception as </p>

<pre><code>System.TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception.
System.TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception.
System.DllNotFoundException: Unable to load DLL 'mclmcrrt8_2.dll': The specified module could not be found.
</code></pre>

<p>For the sake of POC, we are manually installing the MCR on the docker container by initiating a powershell session and then then manually updating the <strong>Path</strong> environment variable. We can see in the installation logs that MCR has installed successfully and path variable has also been updated. But the error stills states that it was not able to locate 'mclmcrrt8_2.dll'. </p>

<p>Any ideas on how to get MCR running on docker windows container?</p>



More answer... (https://stackoverflow.com/questions/59049733/matlab-on-a-docker-windows-container)