Skip to content

Commit

Permalink
Fix nvidia-docker version
Browse files Browse the repository at this point in the history
Signed-off-by: Renaud Gaubert <[email protected]>
  • Loading branch information
Renaud Gaubert committed Aug 12, 2019
1 parent 6c5387d commit 315b92b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile.amzn
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ COPY daemon.json $DIST_DIR
WORKDIR $DIST_DIR/..
COPY rpm .

RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker

CMD rpmbuild --clean -bb \
-D "_topdir $PWD" \
-D "version $VERSION" \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ COPY daemon.json $DIST_DIR
WORKDIR $DIST_DIR/..
COPY rpm .

RUN sed -i "s;@VERSION@;${PKG_VERS};" $DIST_DIR/nvidia-docker

CMD rpmbuild --clean -bb \
-D "_topdir $PWD" \
-D "version $VERSION" \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ WORKDIR $DIST_DIR
COPY debian ./debian

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

CMD export DISTRIB="unstable" && \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ COPY debian ./debian


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

CMD export DISTRIB="$(lsb_release -cs)" && \
Expand Down
2 changes: 1 addition & 1 deletion nvidia-docker
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ while [ $# -gt 0 ]; do
break
;;
version)
printf "NVIDIA Docker: 2.0.3\n"
printf "NVIDIA Docker: @VERSION@\n"
break
;;
--)
Expand Down

0 comments on commit 315b92b

Please sign in to comment.