Skip to content

Commit cf8cc4d

Browse files
author
Himani Deshpande
committed
[AL2023] Installing http Parser which is a dependency for supporting slurmrestd
1 parent 615c198 commit cf8cc4d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

cookbooks/aws-parallelcluster-slurm/resources/slurm_dependencies/partial/_slurm_dependencies_common.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,11 @@
1818
packages dependencies
1919
action :install
2020
end unless redhat_on_docker?
21+
22+
action_install_extra_dependencies
23+
end
24+
25+
26+
action :install_extra_dependencies do
27+
# Do Nothing
2128
end

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,22 @@ def dependencies
2121
def unsupported_dependencies
2222
# Using `sudo dnf supportinfo --pkg <PACKAGE_NAME>` to find if packages are available
2323
%w(http-parser-devel)
24+
# Tried replacing http-parser with below Packages ( doesnt work )
25+
# %w(httpcomponents-client httpcomponents-core httpcomponents-project httpd httpd-core httpd-devel httpd-filesystem httpd-manual httpd-tools)
26+
end
27+
28+
29+
action :install_extra_dependencies do
30+
# Following https://slurm.schedmd.com/related_software.html#jwt for Installing Http-parser
31+
bash 'Install http-parser' do
32+
user 'root'
33+
group 'root'
34+
code <<-HTTP_PARSER
35+
set -e
36+
git clone --depth 1 --single-branch -b v2.9.4 https://github.com/nodejs/http-parser.git http_parser
37+
cd http_parser
38+
make
39+
make install
40+
HTTP_PARSER
41+
end
2442
end

0 commit comments

Comments
 (0)