diff options
author | Simon Rettberg | 2023-03-31 16:02:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-03-31 16:02:54 +0200 |
commit | c1fc7cacd26dbfa9b74117b3c077e0644e7b8099 (patch) | |
tree | efa4c6a8311abced7fc93d59ff68dac1e06495b4 /core/modules/docker-ce | |
parent | setup_target: Modernize a tiny little bit (diff) | |
download | mltk-c1fc7cacd26dbfa9b74117b3c077e0644e7b8099.tar.gz mltk-c1fc7cacd26dbfa9b74117b3c077e0644e7b8099.tar.xz mltk-c1fc7cacd26dbfa9b74117b3c077e0644e7b8099.zip |
[docker-ce] Quick and dirty fix for debian version
Diffstat (limited to 'core/modules/docker-ce')
-rw-r--r-- | core/modules/docker-ce/module.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/docker-ce/module.build b/core/modules/docker-ce/module.build index fd4a720b..09de4791 100644 --- a/core/modules/docker-ce/module.build +++ b/core/modules/docker-ce/module.build @@ -13,6 +13,12 @@ module_init() { vers=11 codename="buster" fi + if [ "$SYS_DISTRIBUTION" = "debian" ]; then + # Brute force down to a valid version + while (( vers > 10 )) && ! curl -sSfL "https://nvidia.github.io/nvidia-docker/${SYS_DISTRIBUTION}${vers}/nvidia-docker.list" > /dev/null; do + (( vers-- )) + done + fi apts=( "https://download.docker.com/linux/${SYS_DISTRIBUTION}/gpg deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$SYS_DISTRIBUTION $codename stable" "https://nvidia.github.io/nvidia-docker/gpgkey https://nvidia.github.io/nvidia-docker/${SYS_DISTRIBUTION}${vers}/nvidia-docker.list" |