Skip to content

Commit 2398935

Browse files
committed
Update deployment docs
Updated deployment instructions to replace `conda` with `mamba` for environment activation and creation. Replaced `python3` with `python` for pip installations and switched to Miniforge instead of Miniconda. Fixed outdated supervisor URLs for a more accurate reference.
1 parent 10dda58 commit 2398935

File tree

3 files changed

+26
-27
lines changed

3 files changed

+26
-27
lines changed

docs/deployment/arbutus_cloud.rst

+14-15
Original file line numberDiff line numberDiff line change
@@ -785,34 +785,33 @@ Install the `Miniconda`_ environment and package manager:
785785
.. code-block:: bash
786786
787787
$ cd /nemoShare/MEOPAR/nowcast-sys/
788-
$ curl -LO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
789-
$ bash Miniconda3-latest-Linux-x86_64.sh
788+
$ curl -LO https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-pypy3-Linux-x86_64.sh
789+
$ bash Miniforge-pypy3-Linux-x86_64.sh
790790
791-
Answer :file:`/nemoShare/MEOPAR/nowcast-sys/miniconda3` when the installer asks for an installation location.
791+
Answer :file:`/nemoShare/MEOPAR/nowcast-sys/miniforge-pypy3` when the installer asks for an installation location.
792792

793-
Answer no when the install asks :guilabel:`Do you wish the installer to initialize Miniconda3 by running conda init? [yes|no]`.
793+
Answer ``yes`` when the install asks :guilabel:`Do you wish to update your shell profile to automatically initialize conda? ... [yes|no]`.
794794

795795
The Python packages that the system depends on are installed in a conda environment with:
796796

797797
.. code-block:: bash
798798
799799
$ cd /nemoShare/MEOPAR/nowcast-sys/
800-
$ conda update -n base -c defaults conda
801-
$ conda env create \
800+
$ mamba env create \
802801
--prefix /nemoShare/MEOPAR/nowcast-sys/nowcast-env \
803802
-f SalishSeaNowcast/envs/environment-prod.yaml
804-
$ source /nemoShare/MEOPAR/nowcast-sys/miniconda3/bin/activate /nemoShare/MEOPAR/nowcast-sys/nowcast-env/
805-
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python3 -m pip install --editable NEMO_Nowcast/
806-
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python3 -m pip install --editable moad_tools/
807-
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python3 -m pip install --editable tools/SalishSeaTools/
803+
$ mamba activate /nemoShare/MEOPAR/nowcast-sys/nowcast-env/
804+
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python -m pip install --editable NEMO_Nowcast/
805+
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python -m pip install --editable moad_tools/
806+
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python -m pip install --editable tools/SalishSeaTools/
808807
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ cd OPPTools/
809808
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ git switch SalishSeaCast-prod
810809
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ cd /nemoShare/MEOPAR/nowcast-sys/
811-
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python3 -m pip install --editable OPPTools/
812-
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python3 -m pip install --editable NEMO-Cmd/
813-
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python3 -m pip install --editable SalishSeaCmd/
814-
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python3 -m pip install --editable FVCOM-Cmd/
815-
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python3 -m pip install --editable SalishSeaNowcast/
810+
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python -m pip install --editable OPPTools/
811+
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python -m pip install --editable NEMO-Cmd/
812+
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python -m pip install --editable SalishSeaCmd/
813+
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python -m pip install --editable FVCOM-Cmd/
814+
(/nemoShare/MEOPAR/nowcast-sys/nowcast-env)$ python -m pip install --editable SalishSeaNowcast/
816815
817816
818817
Environment Variables

docs/deployment/operations.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ and the manager,
3939
are managed by the `supervisor`_ process manager tool.
4040
So is the `sarracenia client`_ that maintains mirrors of the HRDPS forecast files and rivers hydrometric files from the `ECCC MSC datamart service`_.
4141

42-
.. _supervisor: http://supervisord.org/
42+
.. _supervisor: https://supervisord.org/
4343
.. _sarracenia client: https://github.com/MetPX/sarracenia/blob/v2_dev/doc/sr_subscribe.1.rst
4444
.. _ECCC MSC datamart service: https://dd.weather.gc.ca/
4545

@@ -73,7 +73,7 @@ Start it with:
7373
$ source activate /results/nowcast-sys/nowcast-env
7474
(/results/nowcast-sys/nowcast-env)$ supervisorctl --configuration $NOWCAST_CONFIG/supervisord.ini
7575
76-
.. _supervisorctl: http://supervisord.org/running.html#running-supervisorctl
76+
.. _supervisorctl: https://supervisord.org/running.html#running-supervisorctl
7777

7878
See the `supervisorctl`_ docs,
7979
or use the ``help`` command within :command:`supervisorctl` to get information on the available commands.

docs/deployment/skookum.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ For the ``SalishSeaCast`` automation system:
6868
$ mamba env create \
6969
--prefix /SalishSeaCast/nowcast-env \
7070
-f SalishSeaNowcast/envs/environment-prod.yaml
71-
$ conda activate /SalishSeaCast/nowcast-env
72-
(/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable NEMO_Nowcast/
73-
(/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable moad_tools/
74-
(/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable Reshapr/
75-
(/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable tools/SalishSeaTools/
71+
$ mamba activate /SalishSeaCast/nowcast-env
72+
(/SalishSeaCast/nowcast-env)$ python -m pip install --editable NEMO_Nowcast/
73+
(/SalishSeaCast/nowcast-env)$ python -m pip install --editable moad_tools/
74+
(/SalishSeaCast/nowcast-env)$ python -m pip install --editable Reshapr/
75+
(/SalishSeaCast/nowcast-env)$ python -m pip install --editable tools/SalishSeaTools/
7676
(/SalishSeaCast/nowcast-env)$ cd OPPTools/
7777
(/SalishSeaCast/nowcast-env)$ git switch SalishSeaCast-prod
7878
(/SalishSeaCast/nowcast-env)$ cd /SalishSeaCast/
79-
(/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable OPPTools/
80-
(/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable NEMO-Cmd/
81-
(/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable SalishSeaCmd/
82-
(/SalishSeaCast/nowcast-env)$ python3 -m pip install --editable SalishSeaNowcast/
79+
(/SalishSeaCast/nowcast-env)$ python -m pip install --editable OPPTools/
80+
(/SalishSeaCast/nowcast-env)$ python -m pip install --editable NEMO-Cmd/
81+
(/SalishSeaCast/nowcast-env)$ python -m pip install --editable SalishSeaCmd/
82+
(/SalishSeaCast/nowcast-env)$ python -m pip install --editable SalishSeaNowcast/
8383
8484
For the `sarracenia client`_ that maintains mirrors of the HRDPS forecast files and
8585
rivers hydrometric files from the `ECCC MSC datamart service`_:
@@ -93,7 +93,7 @@ rivers hydrometric files from the `ECCC MSC datamart service`_:
9393
$ mamba env create \
9494
--prefix /SalishSeaCast/sarracenia-env \
9595
-f SalishSeaNowcast/envs/environment-sarracenia.yaml
96-
$ conda activate /SalishSeaCast/sarracenia-env
96+
$ mamba activate /SalishSeaCast/sarracenia-env
9797
(/SalishSeaCast/sarracenia-env)$ sr_subscribe edit credentials.conf # initialize datamart credentials
9898
9999
For the `salishsea-site web app`_ that is mounted at https://salishsea.eos.ubc.ca/:

0 commit comments

Comments
 (0)