Skip to content

Commit 0850cec

Browse files
committed
Install http-parser
1 parent a70d6d8 commit 0850cec

File tree

1 file changed

+30
-8
lines changed

1 file changed

+30
-8
lines changed

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

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,35 @@ 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-
bash 'Install http-parser' do
26-
code <<-HTTP_PARSER
27-
set -e
28-
git clone --depth 1 --single-branch -b v2.9.4 https://github.com/nodejs/http-parser.git http_parser
29-
cd http_parser
30-
make
31-
make install
32-
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
3345
end
46+
47+
# bash 'Install http-parser' do
48+
# code <<-HTTP_PARSER
49+
# set -e
50+
# git clone --depth 1 --single-branch -b v2.9.4 https://github.com/nodejs/http-parser.git http_parser
51+
# cd http_parser
52+
# make
53+
# make install
54+
# HTTP_PARSER
55+
# end
3456
end

0 commit comments

Comments
 (0)