|
Most LSC and CDS software is now distributed in conda environments.
|
|
Most LSC and CDS software is now distributed in conda environments.
|
|
|
|
|
|
Download the conda mangement script https://git.ligo.org/dasc/puppet/conda/-/raw/master/files/bin/update_conda.py and save it somewhere handy.
|
|
Download the conda mangement script [https://git.ligo.org/dasc/puppet/conda/-/raw/master/files/bin/update_conda.py](https://cdswiki.ligo-la.caltech.edu/foswiki/bin/edit/CDS/FromHere?topicparent=CDS.SetupStandAloneTestStandWorkstation "Create this topic") and save it somewhere handy.
|
|
|
|
|
|
Identify a directory that can hold ~50GB of files for the conda software installations. This is typically put in /opt/conda, but could be different on your system.
|
|
Identify a directory that can hold <span dir="">\~</span>50GB of files for the conda software installations. This is typically put in `/opt/conda`, but could be different on your system.
|
|
|
|
|
|
Create a config file to list which conda environments should be installed. Unless you have specific requirements, the cds environment should suffice. Put this in your /opt/conda/conda_config.yaml file:
|
|
Create a config file to list which conda environments should be installed. Unless you have specific requirements, the `cds` environment should suffice. Put this in your `/opt/conda/conda_config.yaml` file:
|
|
|
|
|
|
|
|
```
|
|
---
|
|
---
|
|
home: "/opt/conda"
|
|
home: "/opt/conda"
|
|
forge_url: "https://apt.ligo-wa.caltech.edu/sources/conda/environments/linux-64/"
|
|
forge_url: "https://apt.ligo-wa.caltech.edu/sources/conda/environments/linux-64/"
|
... | @@ -13,9 +14,11 @@ remove_missing: false |
... | @@ -13,9 +14,11 @@ remove_missing: false |
|
user_configs: []
|
|
user_configs: []
|
|
environs:
|
|
environs:
|
|
cds:
|
|
cds:
|
|
|
|
```
|
|
|
|
|
|
Create /etc/profile.d/conda.sh with the following contents, adjusting conda_base as needed:
|
|
Create `/etc/profile.d/conda.sh` with the following contents, adjusting `conda_base` as needed:
|
|
|
|
|
|
|
|
```
|
|
conda_base='/opt/conda/base'
|
|
conda_base='/opt/conda/base'
|
|
default_env=''
|
|
default_env=''
|
|
|
|
|
... | @@ -39,5 +42,6 @@ if [ "${ssh_incoming_port}" == "22" -o -z "${ssh_incoming_port}" ] ; then |
... | @@ -39,5 +42,6 @@ if [ "${ssh_incoming_port}" == "22" -o -z "${ssh_incoming_port}" ] ; then |
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
```
|
|
|
|
|
|
Now run update_conda.py --config /opt/conda/conda_config.yaml This will take a while (~15 minutes or more per environment). |
|
Now run `update_conda.py --config /opt/conda/conda_config.yaml` This will take a while (\~15 minutes or more per environment). |
|
\ No newline at end of file |
|
\ No newline at end of file |