forked from NVIDIA/nvidia-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Felix Abecassis <[email protected]>
- Loading branch information
Showing
75 changed files
with
394 additions
and
4,358 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 |
---|---|---|
|
@@ -6,6 +6,4 @@ | |
.\#* | ||
*~ | ||
\#* | ||
bin | ||
dist | ||
samples |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM centos:7 | ||
|
||
# packaging dependencies | ||
RUN yum install -y \ | ||
rpm-build && \ | ||
rm -rf /var/cache/yum/* | ||
|
||
# packaging | ||
ARG PKG_VERS | ||
ARG PKG_REV | ||
ARG RUNTIME_VERSION | ||
ARG DOCKER_VERSION | ||
|
||
ENV VERSION $PKG_VERS | ||
ENV RELEASE $PKG_REV | ||
ENV RUNTIME_VERSION $RUNTIME_VERSION | ||
ENV DOCKER_VERSION $DOCKER_VERSION | ||
|
||
# output directory | ||
ENV DIST_DIR=/tmp/nvidia-container-runtime-$PKG_VERS/SOURCES | ||
RUN mkdir -p $DIST_DIR | ||
|
||
COPY nvidia-docker $DIST_DIR | ||
COPY daemon.json $DIST_DIR | ||
|
||
WORKDIR $DIST_DIR/.. | ||
COPY rpm . | ||
|
||
CMD rpmbuild --clean -bb \ | ||
-D "_topdir $PWD" \ | ||
-D "version $VERSION" \ | ||
-D "release $RELEASE" \ | ||
-D "runtime_version $RUNTIME_VERSION" \ | ||
-D "docker_version $DOCKER_VERSION" \ | ||
SPECS/nvidia-docker2.spec && \ | ||
mv RPMS/noarch/*.rpm /dist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.