Skip to content

Commit 82ce4c5

Browse files
committed
Install http-parser
1 parent cd5f5d8 commit 82ce4c5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

cookbooks/aws-parallelcluster-slurm/resources/slurm_dependencies/slurm_dependencies_alinux2023.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,28 @@ def dependencies
2222
# http parser is no longer maintained, therefore Amazon Linux 2023 does have have the package in OS repos
2323
# https://docs.aws.amazon.com/linux/al2023/release-notes/removed-AL2023.4-AL2.html
2424
# Following https://slurm.schedmd.com/related_software.html#jwt for Installing Http-parser
25+
26+
remote_file "#{node['cluster']['sources_dir']}/http-parser-2.9.4" do
27+
source "https://github.com/nodejs/http-parser/archive/refs/tags/v2.9.4.tar.gz"
28+
mode '0644'
29+
retries 3
30+
retry_delay 5
31+
action :create_if_missing
32+
end
33+
34+
bash 'make install' do
35+
user 'root'
36+
group 'root'
37+
cwd "#{node['cluster']['sources_dir']}"
38+
code <<-HTTP
39+
set -e
40+
tar xf #{node['cluster']['sources_dir']}/http-parser-2.9.4
41+
cd http-parser-2.9.4
42+
make
43+
make install
44+
HTTP
45+
end
46+
2547
# bash 'Install http-parser' do
2648
# code <<-HTTP_PARSER
2749
# set -e

0 commit comments

Comments
 (0)