Fix nvidia-docker2 installation

- Properly pin dependencies
- Resolves #231
- Update bug report template
This commit is contained in:
Fred Park 2018-07-20 08:53:01 -07:00
Родитель aa3b7f1cef
Коммит 85db792918
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3C4D545F457737EB
2 изменённых файлов: 7 добавлений и 2 удалений

2
.github/ISSUE_TEMPLATE/bug_report.md поставляемый
Просмотреть файл

@ -6,6 +6,8 @@ about: Create a report to help us improve
#### Problem Description #### Problem Description
#### Batch Shipyard Version
#### Steps to Reproduce #### Steps to Reproduce
#### Expected Results #### Expected Results

Просмотреть файл

@ -9,6 +9,7 @@ set -o pipefail
DOCKER_CE_VERSION_DEBIAN=18.03.1 DOCKER_CE_VERSION_DEBIAN=18.03.1
DOCKER_CE_VERSION_CENTOS=18.03.1 DOCKER_CE_VERSION_CENTOS=18.03.1
DOCKER_CE_VERSION_SLES=17.09.1 DOCKER_CE_VERSION_SLES=17.09.1
NVIDIA_CONTAINER_RUNTIME_VERSION=2.0.0
NVIDIA_DOCKER_VERSION=2.0.3 NVIDIA_DOCKER_VERSION=2.0.3
GLUSTER_VERSION_DEBIAN=4.1 GLUSTER_VERSION_DEBIAN=4.1
GLUSTER_VERSION_CENTOS=41 GLUSTER_VERSION_CENTOS=41
@ -18,6 +19,8 @@ DOCKER_CE_PACKAGE_DEBIAN_OLD="docker-ce=${DOCKER_CE_VERSION_DEBIAN}~ce-0~"
DOCKER_CE_PACKAGE_DEBIAN_NEW="docker-ce=${DOCKER_CE_VERSION_DEBIAN}~ce~3-0~" DOCKER_CE_PACKAGE_DEBIAN_NEW="docker-ce=${DOCKER_CE_VERSION_DEBIAN}~ce~3-0~"
DOCKER_CE_PACKAGE_CENTOS="docker-ce-${DOCKER_CE_VERSION_CENTOS}.ce-1.el7.centos" DOCKER_CE_PACKAGE_CENTOS="docker-ce-${DOCKER_CE_VERSION_CENTOS}.ce-1.el7.centos"
DOCKER_CE_PACKAGE_SLES="docker-${DOCKER_CE_VERSION_SLES}_ce-257.3" DOCKER_CE_PACKAGE_SLES="docker-${DOCKER_CE_VERSION_SLES}_ce-257.3"
NVIDIA_CONTAINER_RUNTIME_PACKAGE_UBUNTU="nvidia-container-runtime=${NVIDIA_CONTAINER_RUNTIME_VERSION}+docker${DOCKER_CE_VERSION_DEBIAN}-1"
NVIDIA_CONTAINER_RUNTIME_PACKAGE_CENTOS="nvidia-container-runtime-${NVIDIA_CONTAINER_RUNTIME_VERSION}-1.docker${DOCKER_CE_VERSION_CENTOS}.ce"
NVIDIA_DOCKER_PACKAGE_UBUNTU="nvidia-docker2=${NVIDIA_DOCKER_VERSION}+docker${DOCKER_CE_VERSION_DEBIAN}-1" NVIDIA_DOCKER_PACKAGE_UBUNTU="nvidia-docker2=${NVIDIA_DOCKER_VERSION}+docker${DOCKER_CE_VERSION_DEBIAN}-1"
NVIDIA_DOCKER_PACKAGE_CENTOS="nvidia-docker2-${NVIDIA_DOCKER_VERSION}-1.docker${DOCKER_CE_VERSION_CENTOS}.ce" NVIDIA_DOCKER_PACKAGE_CENTOS="nvidia-docker2-${NVIDIA_DOCKER_VERSION}-1.docker${DOCKER_CE_VERSION_CENTOS}.ce"
MOUNTS_PATH=$AZ_BATCH_NODE_ROOT_DIR/mounts MOUNTS_PATH=$AZ_BATCH_NODE_ROOT_DIR/mounts
@ -604,9 +607,9 @@ EOF
fi fi
refresh_package_index refresh_package_index
if [ "$DISTRIB_ID" == "ubuntu" ]; then if [ "$DISTRIB_ID" == "ubuntu" ]; then
install_packages "$NVIDIA_DOCKER_PACKAGE_UBUNTU" install_packages "$NVIDIA_CONTAINER_RUNTIME_PACKAGE_UBUNTU" "$NVIDIA_DOCKER_PACKAGE_UBUNTU"
elif [[ $DISTRIB_ID == centos* ]]; then elif [[ $DISTRIB_ID == centos* ]]; then
install_packages "$NVIDIA_DOCKER_PACKAGE_CENTOS" install_packages "$NVIDIA_CONTAINER_RUNTIME_PACKAGE_CENTOS" "$NVIDIA_DOCKER_PACKAGE_CENTOS"
fi fi
# merge daemon configs if necessary # merge daemon configs if necessary
set +e set +e