Skip to content

Commit

Permalink
[AL2023] Installing http Parser which is a dependency for supporting …
Browse files Browse the repository at this point in the history
…slurmrestd
  • Loading branch information
Himani Deshpande committed Apr 15, 2024
1 parent 615c198 commit cf8cc4d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@
packages dependencies
action :install
end unless redhat_on_docker?

action_install_extra_dependencies
end


action :install_extra_dependencies do
# Do Nothing
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,22 @@ def dependencies
def unsupported_dependencies
# Using `sudo dnf supportinfo --pkg <PACKAGE_NAME>` to find if packages are available
%w(http-parser-devel)
# Tried replacing http-parser with below Packages ( doesnt work )
# %w(httpcomponents-client httpcomponents-core httpcomponents-project httpd httpd-core httpd-devel httpd-filesystem httpd-manual httpd-tools)
end


action :install_extra_dependencies do
# Following https://slurm.schedmd.com/related_software.html#jwt for Installing Http-parser
bash 'Install http-parser' do
user 'root'
group 'root'
code <<-HTTP_PARSER
set -e
git clone --depth 1 --single-branch -b v2.9.4 https://github.com/nodejs/http-parser.git http_parser
cd http_parser
make
make install
HTTP_PARSER
end
end

0 comments on commit cf8cc4d

Please sign in to comment.