diff --git a/README.md b/README.md index 32b5a4a7c1af8922f541f59d66d3e2fc07c277a8..d6db32b7e71f741b30fa493cc0636bc42e71f1e1 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,36 @@ # Run Pytorch and Tensorflow Containers with Nvidia Enroot +## Install enroot -## Getting started +For Debian-based distributions +``` +arch=$(dpkg --print-architecture) +curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.4.0/enroot_3.4.0-1_${arch}.deb +curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.4.0/enroot+caps_3.4.0-1_${arch}.deb # optional +sudo apt install -y ./*.deb +``` -To make it easy for you to get started with GitLab, here's a list of recommended next steps. +For others, see [here](https://github.com/NVIDIA/enroot/blob/master/doc/installation.md) -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! +## Set up Nvidia credentials -## Add your files +Complete step [4.1](https://docs.nvidia.com/ngc/ngc-overview/index.html#account-signup) and [4.3](https://docs.nvidia.com/ngc/ngc-overview/index.html#generating-api-key). Save the API key. -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: +Add the API key to the config file at ```~/.config/enroot/.credentials ``` +``` +machine nvcr.io login $oauthtoken password your_api_key +machine authn.nvidia.com login $oauthtoken password your_api_key +``` + +Set the config path by adding the line to ```~/.bashrc``` +``` +export ENROOT_CONFIG_PATH=/home/xuagu37/.config/enroot +``` +To make the path valid ``` -cd existing_repo -git remote add origin https://gitlab.liu.se/xuagu37/run-pytorch-and-tensorflow-containers-with-nvidia-enroot.git -git branch -M main -git push -uf origin main +source ~/.bashrc ``` ## Integrate with your tools