Skip to content

Commit

Permalink
install oras when as part of uenv installation
Browse files Browse the repository at this point in the history
  • Loading branch information
bcumming committed Dec 18, 2023
1 parent b26bd81 commit 100cfad
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions activate
Original file line number Diff line number Diff line change
@@ -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@@]"
Expand Down
24 changes: 24 additions & 0 deletions docs/images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

the `image`
```
# list images available locally
uenv image pull gromacs/2023
# pull directly from: requires credentials
uenv image pull --full <https://jfrog...> --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
```


10 changes: 10 additions & 0 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 100cfad

Please sign in to comment.