-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
443 additions
and
85 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM centos:7 | ||
|
||
RUN NVIDIA_GPGKEY_SUM=d1be581509378368edeec8c1eb2958702feedf3bc3d17011adbf24efacce4ab5 && \ | ||
curl -fsSL http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/7fa2af80.pub | sed '/^Version/d' > /etc/pki/rpm-gpg/RPM-GPG-KEY-NVIDIA && \ | ||
echo "$NVIDIA_GPGKEY_SUM /etc/pki/rpm-gpg/RPM-GPG-KEY-NVIDIA" | sha256sum -c --strict - | ||
|
||
COPY mk/cuda.repo /etc/yum.repos.d/cuda.repo | ||
|
||
RUN yum install -y \ | ||
bzip2 \ | ||
cuda-misc-headers-8-0-8.0.61-1 \ | ||
cuda-nvml-dev-8-0-8.0.61-1 \ | ||
gcc \ | ||
git \ | ||
libcap-devel \ | ||
libseccomp-devel \ | ||
m4 \ | ||
redhat-lsb-core \ | ||
rpm-build \ | ||
rpmlint \ | ||
which && \ | ||
rm -rf /var/cache/yum/* | ||
|
||
RUN cd $(mktemp -d) && \ | ||
curl -fsSL -O https://mirrors.kernel.org/mageia/distrib/6/x86_64/media/core/release/pmake-1.45-16.mga6.x86_64.rpm && \ | ||
curl -fsSL -O https://mirrors.kernel.org/mageia/distrib/6/x86_64/media/core/release/bmake-20161212-1.mga6.x86_64.rpm && \ | ||
rpm -i *.rpm && \ | ||
rm -rf $PWD | ||
|
||
ARG USERSPEC=0:0 | ||
|
||
WORKDIR /tmp/libnvidia-container | ||
COPY . . | ||
RUN chown -R $USERSPEC $PWD | ||
USER $USERSPEC | ||
|
||
RUN make distclean && make -j"$(nproc)" | ||
|
||
ENV DIST_DIR /mnt | ||
VOLUME $DIST_DIR | ||
CMD make dist && make rpm |
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,40 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN NVIDIA_GPGKEY_SUM=d1be581509378368edeec8c1eb2958702feedf3bc3d17011adbf24efacce4ab5 && \ | ||
NVIDIA_GPGKEY_FPR=ae09fe4bbd223a84b2ccfce3f60f4b3d7fa2af80 && \ | ||
apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub && \ | ||
apt-key adv --export --no-emit-version -a $NVIDIA_GPGKEY_FPR | tail -n +5 > cudasign.pub && \ | ||
echo "$NVIDIA_GPGKEY_SUM cudasign.pub" | sha256sum -c --strict - && rm cudasign.pub && \ | ||
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 /" > /etc/apt/sources.list.d/cuda.list | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
bmake \ | ||
build-essential \ | ||
bzip2 \ | ||
ca-certificates \ | ||
cuda-misc-headers-8-0=8.0.61-1 \ | ||
cuda-nvml-dev-8-0=8.0.61-1 \ | ||
curl \ | ||
devscripts \ | ||
dh-make \ | ||
fakeroot \ | ||
git \ | ||
libcap-dev \ | ||
libseccomp-dev \ | ||
lintian \ | ||
lsb-release \ | ||
m4 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ARG USERSPEC=0:0 | ||
|
||
WORKDIR /tmp/libnvidia-container | ||
COPY . . | ||
RUN chown -R $USERSPEC $PWD | ||
USER $USERSPEC | ||
|
||
RUN make distclean && make -j"$(nproc)" | ||
|
||
ENV DIST_DIR /mnt | ||
VOLUME $DIST_DIR | ||
CMD make dist && make deb |
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
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,6 @@ | ||
[cuda] | ||
name=cuda | ||
baseurl=http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64 | ||
enabled=1 | ||
gpgcheck=1 | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NVIDIA |
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,20 @@ | ||
#! /bin/sh | ||
|
||
set -u | ||
|
||
VERSION="$1" | ||
PRIVATE_LIBS="$2" | ||
|
||
cat <<EOF | ||
prefix=$prefix | ||
exec_prefix=$exec_prefix | ||
libdir=$libdir | ||
includedir=$includedir | ||
Name: libnvidia-container | ||
Description: NVIDIA container library | ||
Version: $VERSION | ||
Libs: -L\${libdir} -lnvidia-container | ||
Libs.private: $PRIVATE_LIBS | ||
Cflags: -I\${includedir} | ||
EOF |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
libnvidia-container (1.0.0~alpha.1-1) UNRELEASED; urgency=medium | ||
|
||
* Initial release | ||
|
||
-- NVIDIA CORPORATION <[email protected]> Tue, 05 Sep 2017 14:31:33 -0700 |
Oops, something went wrong.