Newer
Older
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## Operational conda environment
These instructions assume the operational "standard practice" that is current
at the time of writing. This practice is to create a conda environment using
the "root" user under `/opt/metobs/mendota_buoy`.
1. Get and install the conda environment:
```bash
cd /tmp
curl -O "https://gitlab.ssec.wisc.edu/metobs/MendotaBuoy/-/raw/master/environment.yaml"
sudo /opt/miniconda3/condabin/conda env create --file environment.yaml --prefix /opt/metobs/mendota_buoy
```
2. Clone the git repository into the environment and other setup:
```bash
cd /opt/metobs/mendota_buoy
sudo mkdir -p repos/git log lock
sudo chown metobs:metobsgrp log lock
sudo git clone "https://gitlab.ssec.wisc.edu/metobs/MendotaBuoy.git" repos/git/MendotaBuoy
sudo ln -s repos/git/MendotaBuoy/scripts ./scripts
sudo git clone "https://gitlab.ssec.wisc.edu/metobs/MetObsCommon.git" repos/git/MetObsCommon
```
3. Install the metobsapi python package:
```bash
sudo /opt/metobs/mendota_buoy/bin/pip install -e repos/git/MetObsCommon/
sudo /opt/metobs/mendota_buoy/bin/pip install -e repos/git/MendotaBuoy/
```
4. Copy `etc` files from MetObsCommon if necessary:
```bash
sudo cp repos/git/MetObsCommon/etc/... /etc/...
```