From 5f8e4d6a0242c0b134e43a653c4de7cb8a380d03 Mon Sep 17 00:00:00 2001 From: YAN Wenkun Date: Fri, 12 Apr 2024 02:39:36 +0800 Subject: [PATCH] Tune zypper for 'megapak' Ditch 'zypper --non-interactive install' --- megapak/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/megapak/Dockerfile b/megapak/Dockerfile index ac7b2cc..0086a1c 100644 --- a/megapak/Dockerfile +++ b/megapak/Dockerfile @@ -58,7 +58,8 @@ ENV PATH="${PATH}:/usr/local/cuda-12.1/bin" \ RUN --mount=type=cache,target=/var/cache/zypp \ zypper addrepo --check --refresh --priority 90 \ 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials/' packman-essentials \ - && zypper --non-interactive install \ + && zypper --gpg-auto-import-keys \ + install --no-confirm --auto-agree-with-licenses \ python311-devel \ python311-pip \ python311-wheel \ @@ -109,7 +110,8 @@ google-noto-coloremoji-fonts \ # Fix for GCC12 (required for compiling CUDA 12.1-related code) RUN --mount=type=cache,target=/var/cache/zypp \ - zypper --non-interactive install \ + zypper --gpg-auto-import-keys \ + install --no-confirm --auto-agree-with-licenses \ gcc12 \ gcc12-c++ \ cpp12 \