https://github.com/friesischscott/gitlab-ci-matlab
Container supporting a mounted in matlab for use in Gitlab CI
https://github.com/friesischscott/gitlab-ci-matlab
gitlab-ci matlab
Last synced: 4 months ago
JSON representation
Container supporting a mounted in matlab for use in Gitlab CI
- Host: GitHub
- URL: https://github.com/friesischscott/gitlab-ci-matlab
- Owner: FriesischScott
- License: unlicense
- Created: 2016-11-14T14:32:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-17T12:20:10.000Z (almost 6 years ago)
- Last Synced: 2025-04-09T22:44:55.337Z (6 months ago)
- Topics: gitlab-ci, matlab
- Language: Dockerfile
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://hub.docker.com/r/friesischscott/gitlab-ci-matlab/)
# 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
```YML
"/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](https://github.com/benjamin-heasly/matlab-support) work. I just needed to modify the Dockerfile to make it usable in Gitlab CI.