-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packages,sources: add NVIDIA docker configurations
This adds the shimpei and docker configurations to set up the `nvidia` runtime for variants that use docker as their containers runtime. Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
- Loading branch information
1 parent
cb57851
commit e74feda
Showing
6 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"log-driver": "journald", | ||
"live-restore": true, | ||
"max-concurrent-downloads": 10, | ||
"storage-driver": "overlay2", | ||
"exec-opts": ["native.cgroupdriver=cgroupfs"], | ||
"data-root": "/var/lib/docker", | ||
"default-runtime": "nvidia", | ||
"runtimes": { "shimpei": { "path": "shimpei" }, "nvidia": { "path": "nvidia-oci" } }, | ||
"selinux-enabled": true, | ||
"default-ulimits": { "nofile": { "Name": "nofile", "Soft": 1024, "Hard": 4096 } } | ||
{{#if settings.container-registry.mirrors}} | ||
{{#each settings.container-registry.mirrors}} | ||
{{#if (eq registry "docker.io" )}}, | ||
"registry-mirrors": [{{join_array ", " endpoint}}] | ||
{{/if}} | ||
{{/each}} | ||
{{/if}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[configuration-files.docker-daemon-config] | ||
path = "/etc/docker/daemon.json" | ||
template-path = "/usr/share/templates/docker-daemon-nvidia-json" |
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
sources/models/shared-defaults/nvidia-oci-hooks-docker.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[settings.oci-hooks] | ||
log4j-hotpatch-enabled = false | ||
|
||
[metadata.settings.oci-hooks] | ||
affected-services = ["oci-hooks"] | ||
|
||
[services.oci-hooks] | ||
configuration-files = ["oci-hooks", "nvidia-oci-hooks"] | ||
restart-commands = [] | ||
|
||
[configuration-files.oci-hooks] | ||
path = "/etc/shimpei/shimpei-hooks.json" | ||
template-path = "/usr/share/templates/oci-default-hooks-json" | ||
|
||
[configuration-files.nvidia-oci-hooks] | ||
path = "/etc/shimpei/nvidia-oci-hooks.json" | ||
template-path = "/usr/share/templates/nvidia-oci-hooks-json" |
2 changes: 1 addition & 1 deletion
2
sources/models/src/aws-k8s-1.22-nvidia/defaults.d/70-oci-hooks.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../../../shared-defaults/nvidia-oci-hooks.toml | ||
../../../shared-defaults/nvidia-oci-hooks-containerd-cri.toml |