Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
dc6dd0ff
Commit
dc6dd0ff
authored
3 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Plain Diff
Merge branch 'enroot' into 'master'
Enroot See merge request
!492
parents
a60db472
d36681e0
No related branches found
No related tags found
1 merge request
!492
Enroot
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/enroot/README.md
+20
-0
20 additions, 0 deletions
roles/enroot/README.md
roles/enroot/tasks/main.yml
+80
-0
80 additions, 0 deletions
roles/enroot/tasks/main.yml
with
100 additions
and
0 deletions
roles/enroot/README.md
0 → 100644
+
20
−
0
View file @
dc6dd0ff
Install enroot on a ubuntu machine
See https://github.com/NVIDIA/enroot
Centos 7 requires a Kernel setting mod so is not supported at this time.
enroot is not meant for installation across a cluster. Config files live only on
installed machine, and container files need to be owned by the user using them.
Usage
-
{ roles: enroot, tags: [ enroot ] }
Be aware, large files are created. You can/should set the following environment
variables to a suitable file system.
export ENROOT_RUNTIME_PATH=/mnt/enroot/runtime
export ENROOT_CONFIG_PATH=/mnt/enroot/config
export ENROOT_CACHE_PATH=/mnt/enroot/cache
export ENROOT_DATA_PATH=/mnt/enroot/data
export ENROOT_TEMP_PATH=/mnt/enroot/tmp
This diff is collapsed.
Click to expand it.
roles/enroot/tasks/main.yml
0 → 100644
+
80
−
0
View file @
dc6dd0ff
---
#see https://nvidia.github.io/libnvidia-container/
#DIST=$(. /etc/os-release; echo $ID$VERSION_ID)
#curl -s -L https://nvidia.github.io/libnvidia-container/gpgkey | \
# sudo apt-key add -
#curl -s -L https://nvidia.github.io/libnvidia-container/$DIST/libnvidia-container.list | \
# sudo tee /etc/apt/sources.list.d/libnvidia-container.list
#sudo apt-get update
#
-
name
:
configure Nivida repos
ansible.builtin.apt_key
:
url
:
https://nvidia.github.io/libnvidia-container/gpgkey
state
:
present
become
:
True
become_user
:
root
when
:
ansible_os_family == "Debian"
-
name
:
get DIST variable for repolist
shell
:
. /etc/os-release; echo $ID$VERSION_ID
register
:
DIST
when
:
ansible_os_family == "Debian"
-
name
:
Print out value of DIST
debug
:
msg={{ DIST.stdout }}
when
:
ansible_os_family == "Debian"
#- name: Add specified repository into sources list
# ansible.builtin.apt_repository:
# #repo: "deb https://nvidia.github.io/libnvidia-container/{{ DIST.stdout }}/libnvidia-container.list"
# repo: "deb https://nvidia.github.io/libnvidia-container/ubuntu20.04 libnvidia-container"
# state: present
-
name
:
Add specified repository into sources list
shell
:
"
curl
-s
-L
https://nvidia.github.io/libnvidia-container/{{
DIST.stdout
}}/libnvidia-container.list
|
sudo
tee
/etc/apt/sources.list.d/libnvidia-container.list"
become
:
True
become_user
:
root
when
:
ansible_os_family == "Debian"
-
name
:
Update apt-get repo and cache
apt
:
update_cache=yes force_apt_get=yes cache_valid_time=3600
become
:
True
become_user
:
root
when
:
ansible_os_family == "Debian"
-
name
:
install Nivida container tools
package
:
state
:
present
name
:
-
libnvidia-container1
-
libnvidia-container-tools
become
:
true
become_user
:
root
when
:
ansible_os_family == "Debian"
-
name
:
get architecture
shell
:
dpkg --print-architecture
register
:
ARCH
when
:
ansible_os_family == "Debian"
-
name
:
Print out value of ARCH
debug
:
msg={{ ARCH.stdout }}
when
:
ansible_os_family == "Debian"
-
name
:
install hardened enroot deb 1 of
2
apt
:
deb
:
"
https://github.com/NVIDIA/enroot/releases/download/v3.3.0/enroot-hardened_3.3.0-1_{{
ARCH.stdout
}}.deb"
become
:
true
become_user
:
root
when
:
ansible_os_family == "Debian"
-
name
:
install hardened enroot deb 2 of
2
apt
:
deb
:
"
https://github.com/NVIDIA/enroot/releases/download/v3.3.0/enroot-hardened+caps_3.3.0-1_{{
ARCH.stdout
}}.deb"
become
:
true
become_user
:
root
when
:
ansible_os_family == "Debian"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment