Skip to content

Commit

Permalink
Remove git from pyxis install
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Aug 23, 2024
1 parent 8402979 commit 1949e48
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1949e48

Please sign in to comment.