nvidia-container-toolkit-1.12.0 added
This commit is contained in:
parent
6f9c880ac1
commit
f9cab21bf9
|
@ -0,0 +1 @@
|
||||||
|
DIST nvidia-container-toolkit-1.12.0.tar.gz 2226100 SHA256 b84dbc28dabd8c8d3731e60d75002619f55422d3930d399fb66677c7875e384f SHA512 43adec1cc330c2da66240ead8ca84283b59dfdec5c44b2cf411c3c75eaa53ce5112cfb9bafbb85d5e4f3019ff29d927973e0a662344b475dc0ca8f64c5bd5fe4 WHIRLPOOL b89c3ebcca319118ba7b7ccbd61bd08ffa53e8d445505a6d762a5004f8e63c2e3b35d889ac648e99e9986a2429029a4fa43e7dfc01392bd6776d2203afd59337
|
|
@ -0,0 +1,17 @@
|
||||||
|
disable-require = false
|
||||||
|
#swarm-resource = "DOCKER_RESOURCE_GPU"
|
||||||
|
|
||||||
|
[nvidia-container-cli]
|
||||||
|
#root = "/run/nvidia/driver"
|
||||||
|
#path = "/usr/bin/nvidia-container-cli"
|
||||||
|
environment = []
|
||||||
|
#debug = "/var/log/nvidia-container-toolkit.log"
|
||||||
|
#ldcache = "/etc/ld.so.cache"
|
||||||
|
load-kmods = true
|
||||||
|
#no-cgroups = false
|
||||||
|
user = "root:video"
|
||||||
|
ldconfig = "@/sbin/ldconfig"
|
||||||
|
#alpha-merge-visible-devices-envvars = false
|
||||||
|
|
||||||
|
[nvidia-container-runtime]
|
||||||
|
#debug = "/var/log/nvidia-container-runtime.log"
|
|
@ -0,0 +1,64 @@
|
||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
EGO_PN="github.com/NVIDIA/${PN}"
|
||||||
|
|
||||||
|
inherit go-module
|
||||||
|
|
||||||
|
DESCRIPTION="NVIDIA container runtime toolkit"
|
||||||
|
HOMEPAGE="https://github.com/NVIDIA/nvidia-container-toolkit"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]] ; then
|
||||||
|
EGIT_REPO_URI="https://github.com/NVIDIA/${PN}.git"
|
||||||
|
inherit git-r3
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
git-r3_src_unpack
|
||||||
|
go-module_live_vendor
|
||||||
|
}
|
||||||
|
else
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/NVIDIA/${PN}/archive/v${PV/_rc/-rc.}.tar.gz -> ${P}.tar.gz
|
||||||
|
"
|
||||||
|
S="${WORKDIR}/${PN}-${PV/_rc/-rc.}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
sys-libs/libnvidia-container
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
app-arch/unzip
|
||||||
|
sys-devel/make
|
||||||
|
"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake binaries
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin "${PN}"
|
||||||
|
into "/usr/bin"
|
||||||
|
dosym "${PN}" "/usr/bin/nvidia-container-runtime-hook"
|
||||||
|
insinto "/etc/nvidia-container-runtime"
|
||||||
|
doins "${FILESDIR}/config.toml"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "Your docker service must restart after install this package."
|
||||||
|
elog "OpenRC: sudo rc-service docker restart"
|
||||||
|
elog "systemd: sudo systemctl restart docker"
|
||||||
|
elog "You may need to edit your /etc/nvidia-container-runtime/config.toml"
|
||||||
|
elog "file before running ${PN} for the first time."
|
||||||
|
elog "For details, please see the NVIDIA docker manual page."
|
||||||
|
}
|
|
@ -8,6 +8,7 @@ app-containers/containerd ~amd64
|
||||||
app-containers/docker ~amd64
|
app-containers/docker ~amd64
|
||||||
app-containers/docker-cli ~amd64
|
app-containers/docker-cli ~amd64
|
||||||
app-containers/docker-proxy ~amd64
|
app-containers/docker-proxy ~amd64
|
||||||
|
app-containers/nvidia-container-toolkit ~amd64
|
||||||
app-containers/runc ~amd64
|
app-containers/runc ~amd64
|
||||||
<app-editors/oxygenxml-12 ~x86
|
<app-editors/oxygenxml-12 ~x86
|
||||||
<app-emulation/faudio-20 ~amd64
|
<app-emulation/faudio-20 ~amd64
|
||||||
|
|
Loading…
Reference in New Issue