Skip to content

FriesischScott/gitlab-ci-matlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

gitlab-ci-matlab

Container supporting a mounted in matlab for use in Gitlab CI

Usage

To use this container in Gitlab you need to mount your local MATLAB installation into the container. This can be achieved by adding

"/path/to/MATLAB/:/usr/local/MATLAB/from-host"

to the volumes part under [runners.docker] in your /etc/gitlab-runner/config.toml.

MATLAB license

Depending on your license you may also need to spoof your container's MAC address to match your license. Assuming the address corresponding to your license is stored inside a variable named HW_ADDRESS, you can run

ip link set dev eth0 address $HW_ADDRESS

to set it inside the container. Make sure that your container is running in privileged mode.

Acknowledgement

This is based on Benjamin Heasly's work. I just needed to modify the Dockerfile to make it usable in Gitlab CI.

About

Container supporting a mounted in matlab for use in Gitlab CI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published