-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto update for package nvidia-docker
- Loading branch information
calil
committed
Aug 22, 2019
1 parent
efef2bd
commit b70fcb2
Showing
2 changed files
with
17 additions
and
21 deletions.
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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
# Maintainer: Ivan Semkin (ivan at semkin dot ru) | ||
# Maintainer: Joel Shapiro <jshapiro at nvidia dot com> | ||
# Maintainer: Kien Dang <mail at kien dot ai> | ||
|
||
pkgname=nvidia-docker | ||
pkgver=2.0.3 | ||
pkgrel=4 | ||
|
||
pkgver=2.1.1 | ||
pkgrel=5 | ||
|
||
pkgdesc='Build and run Docker containers leveraging NVIDIA GPUs' | ||
url='https://github.com/NVIDIA/nvidia-docker' | ||
arch=(any) | ||
license=(BSD) | ||
depends=(docker nvidia-container-runtime nvidia-container-runtime-hook) | ||
|
||
depends=(docker nvidia-container-runtime) | ||
|
||
source=("https://github.com/NVIDIA/nvidia-docker/archive/v$pkgver.tar.gz") | ||
sha256sums=('f94c963b6d2a537711c7e8e9e3c3fe3d9f9fddc48599d5a411119276a33763db') | ||
sha256sums=('09aa48c3eb6be71fae66e0f2e966aaf85ddf24102a51edc5234f9e60a39d3815') | ||
|
||
package() { | ||
cd "${pkgname}-${pkgver}" | ||
|
||
install -d ${pkgdir}/usr/bin | ||
install -m755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} | ||
|
||
install -d ${pkgdir}/etc/docker | ||
install -m644 daemon.json ${pkgdir}/etc/docker/daemon.json | ||
install -D -m755 "nvidia-docker" "${pkgdir}/usr/bin/nvidia-docker" | ||
install -D -m644 "daemon.json" "${pkgdir}/etc/docker/daemon.json" | ||
install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | ||
} | ||
# vim:set ts=2 sw=2 et: |
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,19 +1,12 @@ | ||
post_install() { | ||
cat << EOF | ||
=> Prior to running 'CUDA'-containers, ensure that the nvidia-docker-plugin | ||
is loaded. -> https://github.com/nvidia/nvidia-docker/wiki/Installation-(version-2.0) | ||
|
||
sudo pkill -SIGHUP dockerd | ||
|
||
NOTE: nvidia-docker is deprecated in upstream in favor of docker's new native | ||
gpu support using the nvidia-container-toolkit package. | ||
For more info, see: | ||
https://wiki.archlinux.org/index.php/Docker#Run_GPU_accelerated_Docker_containers_with_NVIDIA_GPUs | ||
EOF | ||
} | ||
|
||
post_upgrade() { | ||
post_install | ||
} | ||
|
||
post_remove() { | ||
cat << EOF | ||
=> Don't forget to disable/stop a potentially running nvidia-docker.service | ||
EOF | ||
} |