Skip to content

Commit

Permalink
NodeJS 20 for Amazon 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Nov 10, 2024
1 parent 432431d commit 145796d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem 'rake'
gem 'dotenv', '~> 2.1'

group :package do
gem 'ood_packaging', '~> 0.16.0'
gem 'ood_packaging', '~> 0.16.1'
end

group :test do
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ GEM
oga (3.3)
ast
ruby-ll (~> 2.1)
ood_packaging (0.16.0)
ood_packaging (0.16.1)
rake (~> 13.0.1)
open_uri_redirections (0.2.1)
parallel (1.21.0)
Expand Down Expand Up @@ -177,7 +177,7 @@ DEPENDENCIES
beaker-docker (~> 1.4.0)
beaker-rspec
dotenv (~> 2.1)
ood_packaging (~> 0.16.0)
ood_packaging (~> 0.16.1)
rake
rspec
rubocop
Expand Down
2 changes: 1 addition & 1 deletion packaging/rpm/ondemand.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%define git_tag_minus_v %(echo %{git_tag} | sed -r 's/^v//')
%define major_version %(echo %{git_tag_minus_v} | cut -d. -f1)
%define minor_version %(echo %{git_tag_minus_v} | cut -d. -f2)
%define runtime_version %{major_version}.%{minor_version}.0
%define runtime_version %{major_version}.%{minor_version}.1
%define runtime_release 1
%define runtime_version_full %{runtime_version}-%{runtime_release}%{?dist}
%define selinux_policy_ver %(rpm --qf "%%{version}" -q selinux-policy)
Expand Down
4 changes: 4 additions & 0 deletions spec/e2e/e2e_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ def install_ondemand
on hosts, 'apt-get update'
install_packages(['ondemand', 'ondemand-dex'])
end
if host_inventory['platform'] == 'amazon'
on hosts, 'alternatives --install /usr/bin/node node /usr/bin/node-20 1'
on hosts, 'alternatives --install /usr/bin/npm npm /usr/bin/npm-20 1'
end
# Avoid 'update_ood_portal --rpm' so that --insecure can be used
on hosts, "sed -i 's|--rpm|--rpm --insecure|g' /etc/systemd/system/#{apache_service}.service.d/ood-portal.conf"
on hosts, 'systemctl daemon-reload'
Expand Down

0 comments on commit 145796d

Please sign in to comment.