Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
Ensure runtime requires latest version of toolkit
Browse files Browse the repository at this point in the history
Signed-off-by: Renaud Gaubert <rgaubert@nvidia.com>
  • Loading branch information
Renaud Gaubert committed Jul 23, 2019
1 parent 027d6c8 commit dc6b7df
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion runtime/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Build-Depends: debhelper (>= 9)

Package: nvidia-container-runtime
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, nvidia-container-toolkit (<< 2.0.0), libseccomp2
Depends: ${shlibs:Depends}, ${misc:Depends}, nvidia-container-toolkit (>= 1.0.1), nvidia-container-toolkit (<< 2.0.0), libseccomp2
Description: NVIDIA container runtime
Provides a modified version of runc allowing users to run GPU enabled
containers.
2 changes: 1 addition & 1 deletion runtime/rpm/SPECS/nvidia-container-runtime.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Source0: nvidia-container-runtime
Source1: LICENSE

Obsoletes: nvidia-container-runtime < 2.0.0
Requires: nvidia-container-toolkit < 2.0.0
Requires: nvidia-container-toolkit >= 1.0.1, nvidia-container-toolkit < 2.0.0
Requires: libseccomp

%description
Expand Down
3 changes: 2 additions & 1 deletion toolkit/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ RUN if [ "$(lsb_release -cs)" = "jessie" ]; then \
WORKDIR $DIST_DIR
COPY debian ./debian

RUN if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi
RUN sed -i "s;@VERSION@;${REVISION};" debian/changelog && \
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi

CMD export DISTRIB="unstable" && \
debuild -eDISTRIB -eSECTION --dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \
Expand Down
3 changes: 2 additions & 1 deletion toolkit/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ COPY config.toml.ubuntu $DIST_DIR/config.toml
WORKDIR $DIST_DIR
COPY debian ./debian

RUN if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi
RUN sed -i "s;@VERSION@;${REVISION};" debian/changelog && \
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi

CMD export DISTRIB="$(lsb_release -cs)" && \
debuild -eDISTRIB -eSECTION --dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \
Expand Down
2 changes: 1 addition & 1 deletion toolkit/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nvidia-container-toolkit (1.0.0-1) UNRELEASED; urgency=medium
nvidia-container-toolkit (@VERSION@) UNRELEASED; urgency=medium

* Initial release. Replaces older package nvidia-container-runtime-hook. (Closes: #XXXXXX)

Expand Down

0 comments on commit dc6b7df

Please sign in to comment.