|
|
# Conda Installation
|
|
|
|
|
|
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](https://cdswiki.ligo-la.caltech.edu/foswiki/bin/edit/CDS/FromHere?topicparent=CDS.SetupStandAloneTestStandWorkstation "Create this topic") and save it somewhere handy.
|
... | ... | @@ -6,7 +8,7 @@ Identify a directory that can hold <span dir="">\~</span>50GB of files for the c |
|
|
|
|
|
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:
|
|
|
|
|
|
```
|
|
|
```plaintext
|
|
|
---
|
|
|
home: "/opt/conda"
|
|
|
forge_url: "https://apt.ligo-wa.caltech.edu/sources/conda/environments/linux-64/"
|
... | ... | @@ -18,7 +20,7 @@ environs: |
|
|
|
|
|
Create `/etc/profile.d/conda.sh` with the following contents, adjusting `conda_base` as needed:
|
|
|
|
|
|
```
|
|
|
```plaintext
|
|
|
conda_base='/opt/conda/base'
|
|
|
default_env=''
|
|
|
|
... | ... | @@ -44,4 +46,6 @@ if [ "${ssh_incoming_port}" == "22" -o -z "${ssh_incoming_port}" ] ; then |
|
|
fi
|
|
|
```
|
|
|
|
|
|
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 |
|
|
Now run `update_conda.py --config /opt/conda/conda_config.yaml` This will take a while (<span dir="">\~</span>15 minutes or more per environment).
|
|
|
|
|
|
# Create conda service and timer |
|
|
\ No newline at end of file |