From 1949e480f57165da78071ff84119048bf8068eff Mon Sep 17 00:00:00 2001 From: Helena Greebe Date: Thu, 22 Aug 2024 21:27:00 -0400 Subject: [PATCH] Remove git from pyxis install --- .../recipes/install/install_pyxis.rb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cookbooks/aws-parallelcluster-slurm/recipes/install/install_pyxis.rb b/cookbooks/aws-parallelcluster-slurm/recipes/install/install_pyxis.rb index e2cad9034..040d9ea02 100644 --- a/cookbooks/aws-parallelcluster-slurm/recipes/install/install_pyxis.rb +++ b/cookbooks/aws-parallelcluster-slurm/recipes/install/install_pyxis.rb @@ -16,13 +16,23 @@ # limitations under the License. pyxis_version = node['cluster']['pyxis']['version'] +pyxis_url = "https://github.com/NVIDIA/pyxis/archive/refs/tags/v#{pyxis_version}.tar.gz" +pyxis_tarball = "#{node['cluster']['sources_dir']}/pyxis-#{pyxis_version}.tar.gz" + +remote_file pyxis_tarball do + source pyxis_url + mode '0644' + retries 3 + retry_delay 5 + action :create_if_missing +end bash "Install pyxis" do user 'root' code <<-PYXIS_INSTALL set -e - git clone --depth 1 --branch v#{pyxis_version} https://github.com/NVIDIA/pyxis.git /tmp/pyxis - cd /tmp/pyxis + tar xf #{pyxis_tarball} -C /tmp + cd /tmp/pyxis-#{pyxis_version} CPPFLAGS='-I /opt/slurm/include/' make CPPFLAGS='-I /opt/slurm/include/' make install mkdir -p /opt/slurm/etc/plugstack.conf.d