cloud-pipeline icon indicating copy to clipboard operation
cloud-pipeline copied to clipboard

Remove repository configurations in launch.sh

Open kamyshova opened this issue 3 years ago • 1 comments
trafficstars

The PR contains removing cuda.list and nvidia-ml.list repositories configurations for Ubuntu distribution in launch.sh. CP_REMOVE_REP_CONFIGURATION environment variable was added to enable/disable removal.

kamyshova avatar May 23 '22 13:05 kamyshova

This looks, but a bit rigid. Let's make it a bit more flexible. Instead of being just a boolean, let's rename the parameter to CP_CAP_REMOVE_FILES and make it a list (comma-delimited) of the paths to be dropped. CP_CAP_REMOVE_FILES shall be set to /etc/apt/sources.list.d/cuda.list,/etc/apt/sources.list.d/nvidia-ml.list by default. In this case - launch.sh will delete everything listed in CP_CAP_REMOVE_FILES. If it is not set or it is empty - do nothing

sidoruka avatar May 23 '22 13:05 sidoruka