From df3adb6c14934972707396188a7003495bc81b81 Mon Sep 17 00:00:00 2001 From: Helena Greebe Date: Tue, 2 Jul 2024 09:53:47 -0400 Subject: [PATCH] [ADC Build Image] Install missing yum dependencies from s3 --- .../install_packages/install_packages_amazon2.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cookbooks/aws-parallelcluster-platform/resources/install_packages/install_packages_amazon2.rb b/cookbooks/aws-parallelcluster-platform/resources/install_packages/install_packages_amazon2.rb index 9b3afc0f2..cca896fbd 100644 --- a/cookbooks/aws-parallelcluster-platform/resources/install_packages/install_packages_amazon2.rb +++ b/cookbooks/aws-parallelcluster-platform/resources/install_packages/install_packages_amazon2.rb @@ -40,4 +40,16 @@ def default_packages ['R3.4'].each do |topic| alinux_extras_topic topic end + + bash 'yum install missing deps' do + user 'root' + group 'root' + code <<-REQ + set -e + aws s3 cp #{node['cluster']['artifacts_build_url']}/epel/rhel7/#{node['kernel']['machine']}/epel_deps.tar.gz epel_deps.tar.gz --region #{node['cluster']['region']} + tar xzf epel_deps.tar.gz + cd epel + yum install -y * 2>/dev/null + REQ + end end