whole-tale / repo2docker_wholetale

Repo2docker plugin for Whole Tale
Other
0 stars 1 forks source link

Make MATLAB proxy version configurable on image #24

Closed craig-willis closed 3 years ago

craig-willis commented 3 years ago

Problem: Mathworks seems to be updating the proxy about every 2-3 months. v0.3.2 introduces two new environment variables that must be set, which I'm now handling via the image object. I've also introduced the WT_MATLAB_PROXY_VERSION env var via wt_env to supporting configuring the proxy package version going forward without rebuilding.

from girder.plugins.wholetale.models.image import Image
image = Image().findOne({"name": "MATLAB (Desktop) [R2020b]"})
image["config"]["environment"] = ["VERSION=R2020b", "MWI_BASE_URL=/matlab", 
   "MWI_APP_PORT=8888", "WT_MATLAB_PROXY_VERSION=v0.3.2"]
Image().save(image)

To test without using WT:

To test with WT: