Closed agstephens closed 3 years ago
cd ~root/
git clone git@github.com:cedadev/jaspy-manager.git
cd jaspy-manager/
export JASPY_BASE_DIR=/appx/jasmin
Edit ./etc/minicondas.json
file to include the latest miniconda binary and checksum. (Then commit and push this change.)
Run the miniconda installer:
./bin/install-miniconda.sh py3.7
...which should pick up the latest python 3.7.x
$JASPY_BASE_DIR/jaspy/src/
and installs new miniconda at /appx/contrib/jaspy/miniconda_envs/jaspy3.7/m3-<version>
(containing root env only)_./bin/add-envs-repo.sh https://github.com/cedadev/ceda-jaspy-envs
jaspy-manager
directory a ceda-jaspy-envs
directory which is a clone the above mentioned repo, and creates a symlink environments-ceda-jaspy-envs
inside the jaspy-manager clone (current directory)Copy the an old initial environment recipe to a new one:
./bin/clone-initial-env.sh <env_spec> <new_name>
where <env_spec>
can be any of: the name of the existing environment, or path to the environment directory, or path to the initial.yml file inside that directory
<new_name>
give the path rather than just the name (anything containing /
will be treated as a path, even if a relative rather than absolute path). Example:
./bin/clone-initial-env.sh \
environments-ceda-jaspy-envs/py3.7/m3-4.7.10/jaspy3.7-m3-4.7.10-r20191126 \
environments-ceda-jaspy-envs/py3.7/m3-4.9.2/jaspy3.7-m3-4.9.2-r20210105
initial.yml
file which is a clone of the existing one but with the environment name inside it changed, and puts this in the correct location (alongside the existing environment directory if just the name given, otherwise at the path specified)./bin/create-env-recipe.sh <path_to_initial_yaml_file>
py_version=$(echo $ENV_NAME | cut -d\- -f1)
miniconda_version=$(echo $ENV_NAME | cut -d\- -f2-3)
export PATH=$JASPY_BASE_DIR/jaspy/miniconda_envs/${py_version}/${miniconda_version}/bin:$PATH
source activate $ENV_NAME
python -c 'import sys; print(sys.version)'
Changing the environment:
initial.yml
fileDone
We will document the process of creating the 2021 release here:
Server (internal): 192.168.3.20
This machine has only a private IP, so must be accessed via another machine in the ceda dev tenancy as ssh gateway (not posting their IPs publicly here, check in the cloud portal).