Closed HaPlossP closed 5 months ago
Hi HaPlossP,
Sorry for the late reply, and thanks for your question.
For the --source flag, mpm expects the *.iso file to be already mounted. Please use the full path to where /tmp/matlab.iso is mounted as your --source. Let me know if that solves the problem.
Also, we appreciate your feedback on the documentation. We'll work on making the instructions clearer.
Dear @mw-skardile , thank you for providing a suggestion. We were desperate and fell back trying to issue the mpm installation command directly from the linux machine that serves as the GitLab runner. The iso R2022b_Update_7_Linux.iso
that we used must have been corrupted to some degree?! While we were able to both mount / extract it, mpm would fail with above error.
We then downloaded the most recent iso of R2022b R2022b_Update_8_Linux.iso
directly on the machine and to our surprise, suddenly things started working.
First, we instructed mpm
like this:
./mpm install --destination=matlab_dest --source=/var/lib/docker/mnt-data/R2022b_Update_8_Linux.iso --products MATLAB
which got quitted by
Error: Unable to find the source folder. Specify a valid source folder
Then, we issued the following commands to mount the iso to a directory from pwd = /var/lib/docker/mnt-data/matlab-test
:
# create mount directory
mkdir matlab-mnt
# mount the iso
mount -o loop /var/lib/docker/mnt-data/R2022b_Update_8_Linux.iso /var/lib/docker/mnt-data/matlab-test/matlab-mnt
# verify mount succeeded by checkinig for /dev/loop in output of
df -h
# ... and also listing the content of the mountpoint
ls /var/lib/docker/mnt-data/matlab-test/matlab-mnt
# finally issuing the *successful* mpm installation command with
./mpm install --destination=matlab_dest --source=/var/lib/docker/mnt-data/matlab-test/matlab-mnt --products MATLAB
Consequently, we can sum up that installation was not successful with the initial iso used. Installation with pointing directly to the new iso was also not successful. Successful installation happened, when pointing to mounted content of the iso.
I feel this is not what the documentation of the --source
flag suggests, so I'm not yet closing this issue.
Hi @HaPlossP , I am glad you were able to install products using the --source flag after mounting the ISO. We'll work on updating the documentation based on your feedback.
Just like in #95 we try to create a matlab docker image with some toolboxes on a corporate GitLab instance without privileged rights. Thus we use kaniko. This time, we try to reference the installation media as iso file, as downloaded from MathWorks.com for R2022b. We try to reference the media as indicated by the manual using the
--source
flag for mpm.Unfortunately, installation fails with
Error: Unable to find the source folder. Specify a valid source folder.
We tried passing the path both with
--source=/tmp/matlab.iso
as well as--source /tmp/matlab.iso
, as documentation is fully not clear about how to provide arguments. (release
is passed with=
in the example of section "Install Products" but not in the section "Product Installation Options") We ensure that the filematlab.iso
is present at/tmp/matlab.iso
by issuing commandls -la
within the pipeline According to the docu,mentation for R2021b and later releases a ISO image is fine..gitlab-ci.yml
Dockerfile
full log of gitlab runner