Skip to content

Commit

Permalink
added script to create geovista conda environment via Docker to use i…
Browse files Browse the repository at this point in the history
…n the automated use case tests
  • Loading branch information
georgemccabe committed Nov 10, 2022
1 parent 2c1a065 commit 9d53f02
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
18 changes: 18 additions & 0 deletions internal/scripts/docker_env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,24 @@ needed to install the tools. It is not recommended to follow these instructions
to install the GFDL Tracker using these steps. Please consult the documentation
for the tool for installation instructions.

## geovista.v5

### Docker

```
docker build -t dtcenter/metplus-envs:geovista.v5 --build-arg ENV_NAME=geovista .
docker push dtcenter/metplus-envs:geovista.v5
```

### Local

```
./scripts/geovista_env.sh
cd /home/met_test/geovista
/home/met_test/.conda/envs/geovista.v5/bin/pip3 install --no-deps --editable .
```


## pytest.v5 (from metplus_base.v5)

Expand Down
32 changes: 32 additions & 0 deletions internal/scripts/docker_env/scripts/geovista_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#! /bin/sh

################################################################################
# Environment: geovista
# Last Updated: 2022-11-08 (mccabe@ucar.edu)
# Notes: Adds Python packages needed to run iris use case
# Requires development version of geovista package that is obtained
# from github.com/bjlittle/geovista
# Python Packages:
# geovista==0.1a1.dev462
# xarray==2022.11.0
# iris==3.3.1
#
# Other Content: None
################################################################################

# Conda environment to create
ENV_NAME=geovista.v5

yum -y install git
git clone https://github.com/bjlittle/geovista.git
cd geovista
conda create -y -n ${ENV_NAME} --file requirements/locks/py310-lock-linux-64.txt

# note: this command will not work on a local machine
# it is specific to docker
/usr/local/envs/${ENV_NAME}/bin/pip3 install --no-deps --editable .
cd -

conda install -y --name ${ENV_NAME} -c conda-forge xarray==2022.11.0
conda install -y --name ${ENV_NAME} -c conda-forge iris==3.3.1

0 comments on commit 9d53f02

Please sign in to comment.