Hello all,

I am embarking on setting up a Vitis Model Composer tool flow and I was 
wondering if any of the Sysgen/Model Composer experts on this list have had any 
luck running these tools in Docker containers? I think we can all agree 
maintaining systems with specialized operating systems for MATLAB is a pain so 
it would be great if Docker was an option to quickly switch the OS environment 
for different tool versions.

I did some experimenting today trying to get Model Composer 2023.1 with MATLAB 
R2021a running in an Ubuntu 20.04 Docker container (all should be compatible). 
The server’s actual OS is Ubuntu 22.04 and MATLAB and Vivado are installed to 
network drive locations.

I built the Dockerfile for Ubuntu 20.04 with all unix packages required for 
MATLAB R2021a supplied by Mathworks 
<https://github.com/mathworks-ref-arch/container-images/tree/main/matlab-deps/r2021a/ubuntu20.04>.
 At the end of the Dockerfile, I mounted the network drive so I could run the 
usual xilinx/2023.1/Vivado/2023.1/settings64.sh and 
xilinx/2023.1/Vivado/2023.1/.settings64-model-composer.sh setup scripts. Model 
Composer launches just fine in the docker container and I see the R2021a MATLAB 
terminal print out that the Vitis Model Composer libraries are loaded but when 
I try to launch Simulink I get a bunch of crypitic window errors that seem like 
OS compatibility issues.

After reading more documentation 
<https://github.com/mathworks-ref-arch/matlab-dockerfile?tab=readme-ov-file#create-a-matlab-container-image>,
 it looks like Mathworks recommends installing MATLAB inside Docker containers. 
This is not as convenient as using the network install but perhaps it’s the 
only way? Has anyone successfully built a .slx Simulink file with Model 
Composer or Sysgen Libraries from inside a Docker container? 

Any tips would be greatly appreciated! I’ll gladly contribute some community 
documentation if I can get it working.

Best,
Jenny Smith

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/E2990924-A1A6-4470-88F6-3CCDDACF100D%40ucsb.edu.

Reply via email to