mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Allow libnvidia-container1 version to be specified directly
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
d75f364b27
commit
278fa43303
@ -61,13 +61,16 @@ COPY oci-nvidia-hook.json $DIST_DIR/oci-nvidia-hook.json
|
|||||||
WORKDIR $DIST_DIR/..
|
WORKDIR $DIST_DIR/..
|
||||||
COPY packaging/rpm .
|
COPY packaging/rpm .
|
||||||
|
|
||||||
|
ARG LIBNVIDIA_CONTAINER_TOOLS_VERSION
|
||||||
|
ENV LIBNVIDIA_CONTAINER_TOOLS_VERSION ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}
|
||||||
|
|
||||||
CMD arch=$(uname -m) && \
|
CMD arch=$(uname -m) && \
|
||||||
rpmbuild --clean --target=$arch -bb \
|
rpmbuild --clean --target=$arch -bb \
|
||||||
-D "_topdir $PWD" \
|
-D "_topdir $PWD" \
|
||||||
-D "release_date $(date +'%a %b %d %Y')" \
|
-D "release_date $(date +'%a %b %d %Y')" \
|
||||||
-D "git_commit ${GIT_COMMIT}" \
|
-D "git_commit ${GIT_COMMIT}" \
|
||||||
-D "version $VERSION" \
|
-D "version $VERSION" \
|
||||||
-D "libnvidia_container_version ${VERSION}-${RELEASE}" \
|
-D "libnvidia_container_tools_version ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}" \
|
||||||
-D "release $RELEASE" \
|
-D "release $RELEASE" \
|
||||||
SPECS/nvidia-container-toolkit.spec && \
|
SPECS/nvidia-container-toolkit.spec && \
|
||||||
mv RPMS/$arch/*.rpm /dist
|
mv RPMS/$arch/*.rpm /dist
|
||||||
|
@ -59,13 +59,16 @@ COPY oci-nvidia-hook.json $DIST_DIR/oci-nvidia-hook.json
|
|||||||
WORKDIR $DIST_DIR/..
|
WORKDIR $DIST_DIR/..
|
||||||
COPY packaging/rpm .
|
COPY packaging/rpm .
|
||||||
|
|
||||||
|
ARG LIBNVIDIA_CONTAINER_TOOLS_VERSION
|
||||||
|
ENV LIBNVIDIA_CONTAINER_TOOLS_VERSION ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}
|
||||||
|
|
||||||
CMD arch=$(uname -m) && \
|
CMD arch=$(uname -m) && \
|
||||||
rpmbuild --clean --target=$arch -bb \
|
rpmbuild --clean --target=$arch -bb \
|
||||||
-D "_topdir $PWD" \
|
-D "_topdir $PWD" \
|
||||||
-D "release_date $(date +'%a %b %d %Y')" \
|
-D "release_date $(date +'%a %b %d %Y')" \
|
||||||
-D "git_commit ${GIT_COMMIT}" \
|
-D "git_commit ${GIT_COMMIT}" \
|
||||||
-D "version $VERSION" \
|
-D "version $VERSION" \
|
||||||
-D "libnvidia_container_version ${VERSION}-${RELEASE}" \
|
-D "libnvidia_container_tools_version ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}" \
|
||||||
-D "release $RELEASE" \
|
-D "release $RELEASE" \
|
||||||
SPECS/nvidia-container-toolkit.spec && \
|
SPECS/nvidia-container-toolkit.spec && \
|
||||||
mv RPMS/$arch/*.rpm /dist
|
mv RPMS/$arch/*.rpm /dist
|
||||||
|
@ -65,14 +65,17 @@ RUN if [ "$(lsb_release -cs)" = "jessie" ]; then \
|
|||||||
WORKDIR $DIST_DIR
|
WORKDIR $DIST_DIR
|
||||||
COPY packaging/debian ./debian
|
COPY packaging/debian ./debian
|
||||||
|
|
||||||
|
ARG LIBNVIDIA_CONTAINER_TOOLS_VERSION
|
||||||
|
ENV LIBNVIDIA_CONTAINER_TOOLS_VERSION ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}
|
||||||
|
|
||||||
RUN dch --create --package="${PKG_NAME}" \
|
RUN dch --create --package="${PKG_NAME}" \
|
||||||
--newversion "${REVISION}" \
|
--newversion "${REVISION}" \
|
||||||
"See https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/blob/${GIT_COMMIT}/CHANGELOG.md for the changelog" && \
|
"See https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/blob/${GIT_COMMIT}/CHANGELOG.md for the changelog" && \
|
||||||
dch --append "Bump libnvidia-container dependency to ${REVISION}" && \
|
dch --append "Bump libnvidia-container dependency to ${LIBNVIDIA_CONTAINER1_VERSION}" && \
|
||||||
dch -r "" && \
|
dch -r "" && \
|
||||||
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi
|
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi
|
||||||
|
|
||||||
CMD export DISTRIB="$(lsb_release -cs)" && \
|
CMD export DISTRIB="$(lsb_release -cs)" && \
|
||||||
debuild -eDISTRIB -eSECTION -eLIBNVIDIA_CONTAINER_VERSION="${REVISION}" \
|
debuild -eDISTRIB -eSECTION -eLIBNVIDIA_CONTAINER_TOOLS_VERSION \
|
||||||
--dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \
|
--dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \
|
||||||
mv /tmp/nvidia-container-toolkit_*.deb /dist
|
mv /tmp/nvidia-container-toolkit_*.deb /dist
|
||||||
|
@ -57,13 +57,16 @@ COPY config/config.toml.${CONFIG_TOML_SUFFIX} $DIST_DIR/config.toml
|
|||||||
WORKDIR $DIST_DIR/..
|
WORKDIR $DIST_DIR/..
|
||||||
COPY packaging/rpm .
|
COPY packaging/rpm .
|
||||||
|
|
||||||
|
ARG LIBNVIDIA_CONTAINER_TOOLS_VERSION
|
||||||
|
ENV LIBNVIDIA_CONTAINER_TOOLS_VERSION ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}
|
||||||
|
|
||||||
CMD arch=$(uname -m) && \
|
CMD arch=$(uname -m) && \
|
||||||
rpmbuild --clean --target=$arch -bb \
|
rpmbuild --clean --target=$arch -bb \
|
||||||
-D "_topdir $PWD" \
|
-D "_topdir $PWD" \
|
||||||
-D "release_date $(date +'%a %b %d %Y')" \
|
-D "release_date $(date +'%a %b %d %Y')" \
|
||||||
-D "git_commit ${GIT_COMMIT}" \
|
-D "git_commit ${GIT_COMMIT}" \
|
||||||
-D "version $VERSION" \
|
-D "version $VERSION" \
|
||||||
-D "libnvidia_container_version ${VERSION}-${RELEASE}" \
|
-D "libnvidia_container_tools_version ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}" \
|
||||||
-D "release $RELEASE" \
|
-D "release $RELEASE" \
|
||||||
SPECS/nvidia-container-toolkit.spec && \
|
SPECS/nvidia-container-toolkit.spec && \
|
||||||
mv RPMS/$arch/*.rpm /dist
|
mv RPMS/$arch/*.rpm /dist
|
||||||
|
@ -58,14 +58,17 @@ COPY config/config.toml.${CONFIG_TOML_SUFFIX} $DIST_DIR/config.toml
|
|||||||
WORKDIR $DIST_DIR
|
WORKDIR $DIST_DIR
|
||||||
COPY packaging/debian ./debian
|
COPY packaging/debian ./debian
|
||||||
|
|
||||||
|
ARG LIBNVIDIA_CONTAINER_TOOLS_VERSION
|
||||||
|
ENV LIBNVIDIA_CONTAINER_TOOLS_VERSION ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}
|
||||||
|
|
||||||
RUN dch --create --package="${PKG_NAME}" \
|
RUN dch --create --package="${PKG_NAME}" \
|
||||||
--newversion "${REVISION}" \
|
--newversion "${REVISION}" \
|
||||||
"See https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/blob/${GIT_COMMIT}/CHANGELOG.md for the changelog" && \
|
"See https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/blob/${GIT_COMMIT}/CHANGELOG.md for the changelog" && \
|
||||||
dch --append "Bump libnvidia-container dependency to ${REVISION}" && \
|
dch --append "Bump libnvidia-container dependency to ${LIBNVIDIA_CONTAINER_TOOLS_VERSION}" && \
|
||||||
dch -r "" && \
|
dch -r "" && \
|
||||||
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi
|
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi
|
||||||
|
|
||||||
CMD export DISTRIB="$(lsb_release -cs)" && \
|
CMD export DISTRIB="$(lsb_release -cs)" && \
|
||||||
debuild -eDISTRIB -eSECTION -eLIBNVIDIA_CONTAINER_VERSION="${REVISION}" \
|
debuild -eDISTRIB -eSECTION -eLIBNVIDIA_CONTAINER_TOOLS_VERSION \
|
||||||
--dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \
|
--dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \
|
||||||
mv /tmp/*.deb /dist
|
mv /tmp/*.deb /dist
|
||||||
|
@ -85,32 +85,41 @@ docker-all: $(AMD64_TARGETS) $(X86_64_TARGETS) \
|
|||||||
--%: docker-build-%
|
--%: docker-build-%
|
||||||
@
|
@
|
||||||
|
|
||||||
|
LIBNVIDIA_CONTAINER_VERSION ?= $(LIB_VERSION)
|
||||||
|
LIBNVIDIA_CONTAINER_TAG ?= $(LIB_TAG)
|
||||||
|
|
||||||
# private ubuntu target
|
# private ubuntu target
|
||||||
--ubuntu%: OS := ubuntu
|
--ubuntu%: OS := ubuntu
|
||||||
--ubuntu%: LIB_VERSION := $(LIB_VERSION)$(if $(LIB_TAG),~$(LIB_TAG))
|
--ubuntu%: LIB_VERSION := $(LIB_VERSION)$(if $(LIB_TAG),~$(LIB_TAG))
|
||||||
|
--ubuntu%: LIBNVIDIA_CONTAINER_TOOLS_VERSION := $(LIBNVIDIA_CONTAINER_VERSION)$(if $(LIBNVIDIA_CONTAINER_TAG),~$(LIBNVIDIA_CONTAINER_TAG))-1
|
||||||
--ubuntu%: PKG_REV := 1
|
--ubuntu%: PKG_REV := 1
|
||||||
|
|
||||||
# private debian target
|
# private debian target
|
||||||
--debian%: OS := debian
|
--debian%: OS := debian
|
||||||
--debian%: LIB_VERSION := $(LIB_VERSION)$(if $(LIB_TAG),~$(LIB_TAG))
|
--debian%: LIB_VERSION := $(LIB_VERSION)$(if $(LIB_TAG),~$(LIB_TAG))
|
||||||
|
--debian%: LIBNVIDIA_CONTAINER_TOOLS_VERSION := $(LIBNVIDIA_CONTAINER_VERSION)$(if $(LIBNVIDIA_CONTAINER_TAG),~$(LIBNVIDIA_CONTAINER_TAG))-1
|
||||||
--debian%: PKG_REV := 1
|
--debian%: PKG_REV := 1
|
||||||
|
|
||||||
# private centos target
|
# private centos target
|
||||||
--centos%: OS := centos
|
--centos%: OS := centos
|
||||||
--centos%: PKG_REV := $(if $(LIB_TAG),0.1.$(LIB_TAG),1)
|
--centos%: PKG_REV := $(if $(LIB_TAG),0.1.$(LIB_TAG),1)
|
||||||
|
--centos%: LIBNVIDIA_CONTAINER_TOOLS_VERSION := $(LIBNVIDIA_CONTAINER_VERSION)-$(if $(LIBNVIDIA_CONTAINER_TAG),0.1.$(LIBNVIDIA_CONTAINER_TAG),1)
|
||||||
--centos8%: BASEIMAGE = quay.io/centos/centos:stream8
|
--centos8%: BASEIMAGE = quay.io/centos/centos:stream8
|
||||||
|
|
||||||
# private amazonlinux target
|
# private amazonlinux target
|
||||||
--amazonlinux%: OS := amazonlinux
|
--amazonlinux%: OS := amazonlinux
|
||||||
|
--amazonlinux%: LIBNVIDIA_CONTAINER_TOOLS_VERSION := $(LIBNVIDIA_CONTAINER_VERSION)-$(if $(LIBNVIDIA_CONTAINER_TAG),0.1.$(LIBNVIDIA_CONTAINER_TAG),1)
|
||||||
--amazonlinux%: PKG_REV := $(if $(LIB_TAG),0.1.$(LIB_TAG),1)
|
--amazonlinux%: PKG_REV := $(if $(LIB_TAG),0.1.$(LIB_TAG),1)
|
||||||
|
|
||||||
# private opensuse-leap target
|
# private opensuse-leap target
|
||||||
--opensuse-leap%: OS = opensuse-leap
|
--opensuse-leap%: OS = opensuse-leap
|
||||||
--opensuse-leap%: BASEIMAGE = opensuse/leap:$(VERSION)
|
--opensuse-leap%: BASEIMAGE = opensuse/leap:$(VERSION)
|
||||||
|
--opensuse-leap%: LIBNVIDIA_CONTAINER_TOOLS_VERSION := $(LIBNVIDIA_CONTAINER_VERSION)-$(if $(LIBNVIDIA_CONTAINER_TAG),0.1.$(LIBNVIDIA_CONTAINER_TAG),1)
|
||||||
--opensuse-leap%: PKG_REV := $(if $(LIB_TAG),0.1.$(LIB_TAG),1)
|
--opensuse-leap%: PKG_REV := $(if $(LIB_TAG),0.1.$(LIB_TAG),1)
|
||||||
|
|
||||||
# private rhel target (actually built on centos)
|
# private rhel target (actually built on centos)
|
||||||
--rhel%: OS := centos
|
--rhel%: OS := centos
|
||||||
|
--rhel%: LIBNVIDIA_CONTAINER_TOOLS_VERSION := $(LIBNVIDIA_CONTAINER_VERSION)-$(if $(LIBNVIDIA_CONTAINER_TAG),0.1.$(LIBNVIDIA_CONTAINER_TAG),1)
|
||||||
--rhel%: PKG_REV := $(if $(LIB_TAG),0.1.$(LIB_TAG),1)
|
--rhel%: PKG_REV := $(if $(LIB_TAG),0.1.$(LIB_TAG),1)
|
||||||
--rhel%: VERSION = $(patsubst rhel%-$(ARCH),%,$(TARGET_PLATFORM))
|
--rhel%: VERSION = $(patsubst rhel%-$(ARCH),%,$(TARGET_PLATFORM))
|
||||||
--rhel%: ARTIFACTS_DIR = $(DIST_DIR)/rhel$(VERSION)/$(ARCH)
|
--rhel%: ARTIFACTS_DIR = $(DIST_DIR)/rhel$(VERSION)/$(ARCH)
|
||||||
@ -131,6 +140,7 @@ docker-build-%:
|
|||||||
--build-arg PKG_NAME="$(LIB_NAME)" \
|
--build-arg PKG_NAME="$(LIB_NAME)" \
|
||||||
--build-arg PKG_VERS="$(LIB_VERSION)" \
|
--build-arg PKG_VERS="$(LIB_VERSION)" \
|
||||||
--build-arg PKG_REV="$(PKG_REV)" \
|
--build-arg PKG_REV="$(PKG_REV)" \
|
||||||
|
--build-arg LIBNVIDIA_CONTAINER_TOOLS_VERSION="$(LIBNVIDIA_CONTAINER_TOOLS_VERSION)" \
|
||||||
--build-arg CONFIG_TOML_SUFFIX="$(CONFIG_TOML_SUFFIX)" \
|
--build-arg CONFIG_TOML_SUFFIX="$(CONFIG_TOML_SUFFIX)" \
|
||||||
--build-arg GIT_COMMIT="$(GIT_COMMIT)" \
|
--build-arg GIT_COMMIT="$(GIT_COMMIT)" \
|
||||||
--tag $(BUILDIMAGE) \
|
--tag $(BUILDIMAGE) \
|
||||||
|
@ -10,7 +10,7 @@ Build-Depends: debhelper (>= 9)
|
|||||||
|
|
||||||
Package: nvidia-container-toolkit
|
Package: nvidia-container-toolkit
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${misc:Depends}, libnvidia-container-tools (>= @LIBNVIDIA_CONTAINER_VERSION@), libnvidia-container-tools (<< 2.0.0), libseccomp2
|
Depends: ${misc:Depends}, libnvidia-container-tools (>= @LIBNVIDIA_CONTAINER_TOOLS_VERSION@), libnvidia-container-tools (<< 2.0.0), libseccomp2
|
||||||
Breaks: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook
|
Breaks: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook
|
||||||
Replaces: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook
|
Replaces: nvidia-container-runtime (<= 3.5.0-1), nvidia-container-runtime-hook
|
||||||
Description: NVIDIA container runtime hook
|
Description: NVIDIA container runtime hook
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
sed -i "s;@SECTION@;${SECTION:+$SECTION/};g" debian/control
|
sed -i "s;@SECTION@;${SECTION:+$SECTION/};g" debian/control
|
||||||
sed -i "s;@LIBNVIDIA_CONTAINER_VERSION@;${LIBNVIDIA_CONTAINER_VERSION:+$LIBNVIDIA_CONTAINER_VERSION};g" debian/control
|
sed -i "s;@LIBNVIDIA_CONTAINER_TOOLS_VERSION@;${LIBNVIDIA_CONTAINER_TOOLS_VERSION:+$LIBNVIDIA_CONTAINER_TOOLS_VERSION};g" debian/control
|
||||||
|
|
||||||
if [ -n "$DISTRIB" ]; then
|
if [ -n "$DISTRIB" ]; then
|
||||||
sed -i "s;UNRELEASED;$DISTRIB;" debian/changelog
|
sed -i "s;UNRELEASED;$DISTRIB;" debian/changelog
|
||||||
|
@ -21,7 +21,7 @@ Source6: LICENSE
|
|||||||
Obsoletes: nvidia-container-runtime <= 3.5.0-1, nvidia-container-runtime-hook
|
Obsoletes: nvidia-container-runtime <= 3.5.0-1, nvidia-container-runtime-hook
|
||||||
Provides: nvidia-container-runtime
|
Provides: nvidia-container-runtime
|
||||||
Provides: nvidia-container-runtime-hook
|
Provides: nvidia-container-runtime-hook
|
||||||
Requires: libnvidia-container-tools >= %{libnvidia_container_version}, libnvidia-container-tools < 2.0.0
|
Requires: libnvidia-container-tools >= %{libnvidia_container_tools_version}, libnvidia-container-tools < 2.0.0
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Requires: libseccomp2
|
Requires: libseccomp2
|
||||||
@ -70,4 +70,4 @@ rm -f %{_bindir}/nvidia-container-runtime-hook
|
|||||||
# As of 1.10.0-1 we generate the release information automatically
|
# As of 1.10.0-1 we generate the release information automatically
|
||||||
* %{release_date} NVIDIA CORPORATION <cudatools@nvidia.com> %{version}-%{release}
|
* %{release_date} NVIDIA CORPORATION <cudatools@nvidia.com> %{version}-%{release}
|
||||||
- See https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/blob/%{git_commit}/CHANGELOG.md
|
- See https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/blob/%{git_commit}/CHANGELOG.md
|
||||||
- Bump libnvidia-container dependency to libnvidia-container-tools >= %{libnvidia_container_version}
|
- Bump libnvidia-container dependency to libnvidia-container-tools >= %{libnvidia_container_tools_version}
|
||||||
|
@ -52,13 +52,16 @@ ${SCRIPTS_DIR}/get-component-versions.sh
|
|||||||
# Build libnvidia-container
|
# Build libnvidia-container
|
||||||
make -C ${LIBNVIDIA_CONTAINER_ROOT} -f mk/docker.mk ${TARGET}
|
make -C ${LIBNVIDIA_CONTAINER_ROOT} -f mk/docker.mk ${TARGET}
|
||||||
|
|
||||||
# Build nvidia-container-toolkit
|
if [[ -z ${NVIDIA_CONTAINER_TOOLKIT_VERSION} || -z ${LIBNVIDIA_CONTAINER_VERSION} ]]; then
|
||||||
make -C ${NVIDIA_CONTAINER_TOOLKIT_ROOT} ${TARGET}
|
|
||||||
|
|
||||||
if [[ -z ${NVIDIA_CONTAINER_TOOLKIT_VERSION} ]]; then
|
|
||||||
eval $(${SCRIPTS_DIR}/get-component-versions.sh)
|
eval $(${SCRIPTS_DIR}/get-component-versions.sh)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Build nvidia-container-toolkit
|
||||||
|
make -C ${NVIDIA_CONTAINER_TOOLKIT_ROOT} \
|
||||||
|
LIBNVIDIA_CONTAINER_VERSION="${LIBNVIDIA_CONTAINER_VERSION}" \
|
||||||
|
LIBNVIDIA_CONTAINER_TAG="${LIBNVIDIA_CONTAINER_TAG}" \
|
||||||
|
${TARGET}
|
||||||
|
|
||||||
# We set the TOOLKIT_VERSION, TOOLKIT_TAG for the nvidia-container-runtime and nvidia-docker targets
|
# We set the TOOLKIT_VERSION, TOOLKIT_TAG for the nvidia-container-runtime and nvidia-docker targets
|
||||||
# The LIB_TAG is also overridden to match the TOOLKIT_TAG.
|
# The LIB_TAG is also overridden to match the TOOLKIT_TAG.
|
||||||
# Build nvidia-container-runtime
|
# Build nvidia-container-runtime
|
||||||
|
@ -61,6 +61,12 @@ fi
|
|||||||
|
|
||||||
eval $(${SCRIPTS_DIR}/get-component-versions.sh)
|
eval $(${SCRIPTS_DIR}/get-component-versions.sh)
|
||||||
|
|
||||||
|
|
||||||
|
if [[ -n ${NVIDIA_CONTAINER_TOOLKIT_TAG} ]]; then
|
||||||
|
echo "Allowing mismatched versions for release candidate "
|
||||||
|
: ${ALLOW_VERSION_MISMATCH:=true}
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "${NVIDIA_CONTAINER_TOOLKIT_PACKAGE_VERSION}" != "${LIBNVIDIA_CONTAINER_PACKAGE_VERSION}" ]]; then
|
if [[ "${NVIDIA_CONTAINER_TOOLKIT_PACKAGE_VERSION}" != "${LIBNVIDIA_CONTAINER_PACKAGE_VERSION}" ]]; then
|
||||||
set +x
|
set +x
|
||||||
echo "The libnvidia-container and nvidia-container-toolkit versions do not match."
|
echo "The libnvidia-container and nvidia-container-toolkit versions do not match."
|
||||||
@ -68,10 +74,13 @@ if [[ "${NVIDIA_CONTAINER_TOOLKIT_PACKAGE_VERSION}" != "${LIBNVIDIA_CONTAINER_PA
|
|||||||
echo "toolkit: '${NVIDIA_CONTAINER_TOOLKIT_PACKAGE_VERSION}'"
|
echo "toolkit: '${NVIDIA_CONTAINER_TOOLKIT_PACKAGE_VERSION}'"
|
||||||
set -x
|
set -x
|
||||||
[[ ${ALLOW_VERSION_MISMATCH} == "true" ]] || exit 1
|
[[ ${ALLOW_VERSION_MISMATCH} == "true" ]] || exit 1
|
||||||
|
echo "Continuing with mismatched version"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export NVIDIA_CONTAINER_TOOLKIT_VERSION
|
export NVIDIA_CONTAINER_TOOLKIT_VERSION
|
||||||
export NVIDIA_CONTAINER_TOOLKIT_TAG
|
export NVIDIA_CONTAINER_TOOLKIT_TAG
|
||||||
|
export LIBNVIDIA_CONTAINER_VERSION
|
||||||
|
export LIBNVIDIA_CONTAINER_TAG
|
||||||
export NVIDIA_CONTAINER_RUNTIME_VERSION
|
export NVIDIA_CONTAINER_RUNTIME_VERSION
|
||||||
export NVIDIA_DOCKER_VERSION
|
export NVIDIA_DOCKER_VERSION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user