This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jetson-packaging' into 'master'
Add support for building jetson packages See merge request nvidia/container-toolkit/nvidia-docker!30
- Loading branch information
Showing
9 changed files
with
44 additions
and
16 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
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,3 +1,7 @@ | ||
nvidia-docker2 (2.7.0~rc.3-1) UNRELEASED; urgency=medium | ||
|
||
-- NVIDIA CORPORATION <[email protected]> Mon, 08 Nov 2021 14:54:46 +0100 | ||
|
||
nvidia-docker2 (2.7.0~rc.2-1) UNRELEASED; urgency=medium | ||
|
||
* Allow the toolkit version to be specified as a variable | ||
|
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 |
---|---|---|
|
@@ -11,20 +11,22 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
rm -rf /var/lib/apt/lists/* | ||
|
||
# packaging | ||
ARG PKG_NAME | ||
ARG PKG_VERS | ||
ARG PKG_REV | ||
ARG TOOLKIT_VERSION | ||
ARG DOCKER_VERSION | ||
|
||
ENV DEBFULLNAME "NVIDIA CORPORATION" | ||
ENV DEBEMAIL "[email protected]" | ||
ENV PKG_NAME "${PKG_NAME}" | ||
ENV REVISION "$PKG_VERS-$PKG_REV" | ||
ENV DOCKER_VERSION $DOCKER_VERSION | ||
ENV TOOLKIT_VERSION $TOOLKIT_VERSION | ||
ENV SECTION "" | ||
|
||
# output directory | ||
ENV DIST_DIR=/tmp/nvidia-docker2-$PKG_VERS | ||
ENV DIST_DIR=/tmp/${PKG_NAME}-$PKG_VERS | ||
RUN mkdir -p $DIST_DIR /dist | ||
|
||
# nvidia-docker 2.0 | ||
|
@@ -36,8 +38,10 @@ COPY debian ./debian | |
|
||
RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker | ||
RUN sed -i "s;@TOOLKIT_VERSION@;${TOOLKIT_VERSION};" debian/control && \ | ||
dch --changelog debian/changelog --append "Bump nvidia-container-toolkit dependency to ${TOOLKIT_VERSION}" && \ | ||
dch --changelog debian/changelog -r "" && \ | ||
dch --create --package="${PKG_NAME}" \ | ||
--newversion "${REVISION}" \ | ||
"Bump nvidia-container-toolkit dependency to ${TOOLKIT_VERSION}" && \ | ||
dch -r "" && \ | ||
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi | ||
|
||
CMD export DISTRIB="unstable" && \ | ||
|
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 |
---|---|---|
|
@@ -12,20 +12,22 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ | |
rm -rf /var/lib/apt/lists/* | ||
|
||
# packaging | ||
ARG PKG_NAME | ||
ARG PKG_VERS | ||
ARG PKG_REV | ||
ARG TOOLKIT_VERSION | ||
ARG DOCKER_VERSION | ||
|
||
ENV DEBFULLNAME "NVIDIA CORPORATION" | ||
ENV DEBEMAIL "[email protected]" | ||
ENV PKG_NAME "${PKG_NAME}" | ||
ENV REVISION "$PKG_VERS-$PKG_REV" | ||
ENV DOCKER_VERSION $DOCKER_VERSION | ||
ENV TOOLKIT_VERSION $TOOLKIT_VERSION | ||
ENV SECTION "" | ||
|
||
# output directory | ||
ENV DIST_DIR=/tmp/nvidia-docker2-$PKG_VERS | ||
ENV DIST_DIR=/tmp/${PKG_NAME}-$PKG_VERS | ||
RUN mkdir -p $DIST_DIR /dist | ||
|
||
# nvidia-docker 2.0 | ||
|
@@ -37,9 +39,11 @@ COPY debian ./debian | |
|
||
RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker | ||
RUN sed -i "s;@TOOLKIT_VERSION@;${TOOLKIT_VERSION};" debian/control && \ | ||
dch --changelog debian/changelog --append "Bump nvidia-container-toolkit dependency to ${TOOLKIT_VERSION}" && \ | ||
dch --changelog debian/changelog -r "" && \ | ||
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then echo "$(dpkg-parsechangelog --show-field=Version)" && exit 1; fi | ||
dch --create --package="${PKG_NAME}" \ | ||
--newversion "${REVISION}" \ | ||
"Bump nvidia-container-toolkit dependency to ${TOOLKIT_VERSION}" && \ | ||
dch -r "" && \ | ||
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi | ||
|
||
CMD export DISTRIB="$(lsb_release -cs)" && \ | ||
debuild --preserve-env --dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \ | ||
|
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 |
---|---|---|
|
@@ -37,6 +37,8 @@ install -m 644 -t %{buildroot}/etc/docker daemon.json | |
%config /etc/docker/daemon.json | ||
|
||
%changelog | ||
* Mon Nov 08 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.3 | ||
|
||
* Thu Nov 04 2021 NVIDIA CORPORATION <[email protected]> 2.7.0-0.1.rc.2 | ||
- Bump nvidia-container-toolkit dependency to %{toolkit_version} | ||
- Allow the toolkit version to be specified as a variable | ||
|