dafnifacility / matlab-runtime-docker

A repository that will show how to create a docker image for Matlab Runtime that will allow you to run a compiled Matlab executable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

matlab-runtime-docker

A repository that will show how to create a docker image for Matlab Runtime that will allow you to run a compiled Matlab executable.

Prerequisites

The only prerequisite for using this repository is that Docker is installed on your computer.

Things to do before using this repository

Before you can make use of this repository for your own Model you will need to create a Linux executable file for your Model from Matlab. You can do this using the Matlab Compiler add-on to Matlab, this add-on works by creating an executable file that matches the operating system that Matlab is running on. So if you compile an executable while running Matlab on Windows then a Winodws executable file will be created, so you need to make sure you run Matlab on Linux to generate a Linux compatible executable. For those using Windows you could either install Matlab on Windows Subsystem for Linux or into a Docker container as described here then use the compiler to generate your executable described here.

How to use this Repository

  1. Clone a local copy of this code
  2. Replace the helloWorld file with the executable for your Model
  3. Change line 27 and 30 in the Dockerfile to add and run your Model
  4. Open a terminal and run docker build . -t name-for-your-image to build an image for your Model
  5. Congratulations you now have an image that will run your Model without needing a license for Matlab, this can then be uploaded to DAFNI

About

A repository that will show how to create a docker image for Matlab Runtime that will allow you to run a compiled Matlab executable.


Languages

Language:Dockerfile 100.0%