From a9a9d3052eb09477dc270ff0065709d199ce8b7e Mon Sep 17 00:00:00 2001 From: iishiishii Date: Wed, 15 Jan 2025 12:01:28 +1000 Subject: [PATCH] Changed mirror link to http://vault.centos.org to retrieve yum packages. Removed curl and localedef in dependencies. Fix #653 --- neurodocker/templates/_default.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neurodocker/templates/_default.yaml b/neurodocker/templates/_default.yaml index 98a401ff..2c9ab3d2 100644 --- a/neurodocker/templates/_default.yaml +++ b/neurodocker/templates/_default.yaml @@ -19,9 +19,7 @@ source: yum: - bzip2 - ca-certificates - - curl - epel-release - - localedef - unzip env: LANG: en_US.UTF-8 @@ -29,6 +27,10 @@ source: ND_ENTRYPOINT: /neurodocker/startup.sh instructions: | export ND_ENTRYPOINT="{{ self.env['ND_ENTRYPOINT'] }}" + {%- if self.pkg_manager == "yum" %} + sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + {%- endif %} {{ self.install_dependencies() }} {%- if self.pkg_manager == "apt" %} sed -i -e 's/# {{ self.env['LC_ALL'] }} UTF-8/{{ self.env['LC_ALL'] }} UTF-8/' /etc/locale.gen