diff options
author | Simon Rettberg | 2022-12-12 15:31:06 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-12-12 15:31:06 +0100 |
commit | 20a74d7b383bd2ac377160f6a1f5143dfd378956 (patch) | |
tree | b329eb6c6264a5a13232bdbf5112674c322feda3 /core/modules/docker-ce | |
parent | [libvirt-python/libvirt-src] Bump version to 8.10 (diff) | |
download | mltk-20a74d7b383bd2ac377160f6a1f5143dfd378956.tar.gz mltk-20a74d7b383bd2ac377160f6a1f5143dfd378956.tar.xz mltk-20a74d7b383bd2ac377160f6a1f5143dfd378956.zip |
Make buildable on debian 12
Diffstat (limited to 'core/modules/docker-ce')
-rw-r--r-- | core/modules/docker-ce/module.build | 6 | ||||
-rw-r--r-- | core/modules/docker-ce/module.conf.debian | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/core/modules/docker-ce/module.build b/core/modules/docker-ce/module.build index a7ba4966..6355a6af 100644 --- a/core/modules/docker-ce/module.build +++ b/core/modules/docker-ce/module.build @@ -5,9 +5,13 @@ module_init() { declare -a apts [ "$SYS_DISTRIBUTION" = "ubuntu" ] || [ "$SYS_DISTRIBUTION" = "debian" ] || return 0 # Forcefully add docker repo + local vers="$SYS_VERSION" + # XXX HACK - currently 12 is still testing, so we get "n/a" + # and then, there is no release for it yet at nvidia. So use debian 11 repo. + [ "$vers" = "n/a" ] && vers=11 apts=( "https://download.docker.com/linux/${SYS_DISTRIBUTION}/gpg deb [arch=$(dpkg --print-architecture) signed-by=%FILE%] https://download.docker.com/linux/$SYS_DISTRIBUTION $(lsb_release -cs) stable" - "https://nvidia.github.io/nvidia-docker/gpgkey https://nvidia.github.io/nvidia-docker/${SYS_DISTRIBUTION}$(lsb_release -rs)/nvidia-docker.list" + "https://nvidia.github.io/nvidia-docker/gpgkey https://nvidia.github.io/nvidia-docker/${SYS_DISTRIBUTION}${vers}/nvidia-docker.list" ) for i in "${apts[@]}"; do url="${i%% *}" diff --git a/core/modules/docker-ce/module.conf.debian b/core/modules/docker-ce/module.conf.debian new file mode 100644 index 00000000..7b71a6d4 --- /dev/null +++ b/core/modules/docker-ce/module.conf.debian @@ -0,0 +1,8 @@ +#!/bin/bash +REQUIRED_CONTENT_PACKAGES=" + containerd.io + docker-ce + docker-ce-cli + nvidia-container-toolkit + docker-compose +" |