diff --git a/activate b/activate index 07cf776..9539f38 100644 --- a/activate +++ b/activate @@ -1,5 +1,6 @@ export UENV_CMD=@@prefix@@/libexec/uenv-impl export UENV_VERSION=@@version@@ +export UENV_PREFIX=@@prefix@@ function usage { echo "uenv - for using user environments [version @@version@@]" diff --git a/docs/images.md b/docs/images.md new file mode 100644 index 0000000..458cbf9 --- /dev/null +++ b/docs/images.md @@ -0,0 +1,24 @@ + +the `image` +``` +# list images available locally +uenv image pull gromacs/2023 +# pull directly from: requires credentials +uenv image pull --full --name test/2023 + +# list images available locally +uenv image find +# list images available on JFrog +uenv image avail +uenv image avail --cluster=eiger +``` + +updates to other commands +``` +# this should return information about the current cluster? +> uenv status +no uenv loaded +on cluster eiger +``` + + diff --git a/install b/install index ba40b91..e3b0c19 100755 --- a/install +++ b/install @@ -94,4 +94,14 @@ echo "installing $prefix/libexec/uenv-impl" cp $script_path/uenv-impl $prefix/libexec/uenv-impl sed "s|@@version@@|$version|g" -i $prefix/libexec/uenv-impl +# download and install oras client +echo "installing oras client" +oras_version=1.1.0 +oras_file=oras_${oras_version}_linux_amd64.tar.gz +oras_url=https://github.com/oras-project/oras/releases/download/v${oras_version}/${oras_file} +oras_path=`mktemp -d` +(cd "$oras_path"; wget --quiet "$oras_url"; tar -xzf $oras_file; rm *.tar.gz) +cp $oras_path/oras $prefix/libexec/uenv-oras +rm -rf $oras_path + prompt_bash_update "$prefix" "$always_yes"