Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lukaCoding
nvidia-container-runtime
提交
0e94f045
N
nvidia-container-runtime
项目概览
lukaCoding
/
nvidia-container-runtime
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nvidia-container-runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0e94f045
编写于
11月 16, 2017
作者:
F
Felix Abecassis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add support for Debian Stretch
上级
a4ec6ebb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
105 addition
and
1 deletion
+105
-1
Dockerfile.stretch
Dockerfile.stretch
+73
-0
Makefile
Makefile
+24
-1
config.toml.stretch
config.toml.stretch
+8
-0
未找到文件。
Dockerfile.stretch
0 → 100644
浏览文件 @
0e94f045
FROM debian:stretch
# runc dependencies
RUN apt-get update && apt-get install -y \
wget \
git \
make \
pkg-config \
gcc \
libseccomp-dev \
libapparmor-dev \
libselinux1-dev && \
rm -rf /var/lib/apt/lists/*
ENV GOLANG_VERSION 1.9.2
RUN wget -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz \
| tar -v -C /usr/local -xz
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN go get github.com/LK4D4/vndr
# packaging dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
dh-make \
fakeroot \
devscripts && \
rm -rf /var/lib/apt/lists/*
# packaging
ARG PKG_VERS
ARG PKG_REV
ARG PKG_ARCH
ENV DEBFULLNAME "NVIDIA CORPORATION"
ENV DEBEMAIL "cudatools@nvidia.com"
ENV REVISION "$PKG_VERS-$PKG_REV"
ENV DISTRIB "UNRELEASED"
ENV SECTION ""
# output directory
ENV DIST_DIR=/tmp/nvidia-container-runtime-$PKG_VERS
RUN mkdir -p $DIST_DIR
# runc
WORKDIR $GOPATH/src/github.com/opencontainers/runc
ARG RUNC_COMMIT
COPY runc/$RUNC_COMMIT/ /tmp/patches/runc
RUN git clone https://github.com/docker/runc.git . && \
git checkout $RUNC_COMMIT && \
git apply /tmp/patches/runc/* && \
if [ -f vendor.conf ]; then vndr; fi && \
make BUILDTAGS="seccomp apparmor selinux" && \
mv runc $DIST_DIR/nvidia-container-runtime
# nvidia-container-runtime-hook
COPY nvidia-container-runtime-hook/ $GOPATH/src/nvidia-container-runtime-hook
RUN go get -v nvidia-container-runtime-hook && \
mv $GOPATH/bin/nvidia-container-runtime-hook $DIST_DIR/nvidia-container-runtime-hook
COPY config.toml.stretch $DIST_DIR/config.toml
WORKDIR $DIST_DIR
COPY debian ./debian
RUN dch --create --package nvidia-container-runtime -v "$REVISION" "v$REVISION" -D "$DISTRIB" && \
dch -r ""
CMD debuild -eSECTION --dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \
mv /tmp/nvidia-container-runtime_*.deb /dist
Makefile
浏览文件 @
0e94f045
...
...
@@ -10,12 +10,14 @@ DIST_DIR := $(CURDIR)/dist
.NOTPARALLEL
:
.PHONY
:
all
all
:
xenial centos7
all
:
xenial centos7
stretch
xenial
:
17.09.0-xenial 17.06.2-xenial 17.03.2-xenial 1.13.1-xenial 1.12.6-xenial
centos7
:
17.09.0-centos7 17.06.2-centos7 17.03.2-centos7 1.12.6-centos7
stretch
:
17.09.0-stretch 17.06.2-stretch 17.03.2-stretch
17.09.0-xenial
:
$(DOCKER)
build
--build-arg
RUNC_COMMIT
=
"3f2f8b84a77f73d38244dd690525642a72156c64"
\
--build-arg
PKG_VERS
=
"
$(VERSION)
+docker17.09.0"
\
...
...
@@ -82,3 +84,24 @@ centos7: 17.09.0-centos7 17.06.2-centos7 17.03.2-centos7 1.12.6-centos7
--build-arg
PKG_REV
=
"
$(PKG_REV)
.docker1.12.6"
\
-t
nvidia-container-runtime:
$@
-f
Dockerfile.centos7 .
$(DOCKER)
run
--rm
-v
$(DIST_DIR)
/centos7:/dist:Z nvidia-container-runtime:
$@
17.09.0-stretch
:
$(DOCKER)
build
--build-arg
RUNC_COMMIT
=
"3f2f8b84a77f73d38244dd690525642a72156c64"
\
--build-arg
PKG_VERS
=
"
$(VERSION)
+docker17.09.0"
\
--build-arg
PKG_REV
=
"
$(PKG_REV)
"
\
-t
nvidia-container-runtime:
$@
-f
Dockerfile.stretch .
$(DOCKER)
run
--rm
-v
$(DIST_DIR)
/stretch:/dist:Z nvidia-container-runtime:
$@
17.06.2-stretch
:
$(DOCKER)
build
--build-arg
RUNC_COMMIT
=
"810190ceaa507aa2727d7ae6f4790c76ec150bd2"
\
--build-arg
PKG_VERS
=
"
$(VERSION)
+docker17.06.2"
\
--build-arg
PKG_REV
=
"
$(PKG_REV)
"
\
-t
nvidia-container-runtime:
$@
-f
Dockerfile.stretch .
$(DOCKER)
run
--rm
-v
$(DIST_DIR)
/stretch:/dist:Z nvidia-container-runtime:
$@
17.03.2-stretch
:
$(DOCKER)
build
--build-arg
RUNC_COMMIT
=
"54296cf40ad8143b62dbcaa1d90e520a2136ddfe"
\
--build-arg
PKG_VERS
=
"
$(VERSION)
+docker17.03.2"
\
--build-arg
PKG_REV
=
"
$(PKG_REV)
"
\
-t
nvidia-container-runtime:
$@
-f
Dockerfile.stretch .
$(DOCKER)
run
--rm
-v
$(DIST_DIR)
/stretch:/dist:Z nvidia-container-runtime:
$@
config.toml.stretch
0 → 100644
浏览文件 @
0e94f045
#path = "/usr/bin/nvidia-container-cli"
environment = []
load-kmods = true
disable-require = false
#debug = "/var/log/nvidia-container-runtime-hook.log"
[configure]
ldconfig = "@/sbin/ldconfig"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录