Skip to content

Commit 3cf1e1b

Browse files
authored
Prep OnDemand 4.1 dependencies (#4646)
* Prep OnDemand 4.1 dependencies * Upgrade NodeJS from 20 to 22 * Upgrade Passenger from 6.0.23 to 6.1.0 * Upgrade NGINX from 1.23.1 to 1.23.3 * Upgrade Dex from 2.41.1 to 2.44.0 * Force Python 3.12 for EL8 to avoid errors with node-gyp * Runtime only requires python3
1 parent 4ca9119 commit 3cf1e1b

File tree

7 files changed

+21
-16
lines changed

7 files changed

+21
-16
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
- x86_64
138138
- aarch64
139139
- ppc64le
140-
version: ["4.0"]
140+
version: ["4.1"]
141141
exclude:
142142
# Amazon 2023 on aarch64 is very slow and will time out
143143
- dist: amzn2023

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ stages:
99
- deploy
1010

1111
variables:
12-
OOD_BUILD_REPO: '4.0'
12+
OOD_BUILD_REPO: '4.1'
1313
GIT_STRATEGY: clone
1414
GIT_DEPTH: 0
1515
OOD_PACKAGING_DEBUG: 'true'

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gem 'rake'
88
gem 'dotenv', '~> 2.1'
99

1010
group :package do
11-
gem 'ood_packaging', '~> 0.17.1'
11+
gem 'ood_packaging', '~> 0.18.0'
1212
end
1313

1414
group :test do

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ GEM
5353
net-ssh (>= 2.6.5, < 8.0.0)
5454
net-ssh (7.3.0)
5555
net-telnet (0.2.0)
56-
ood_packaging (0.17.1)
56+
ood_packaging (0.18.0)
5757
rake (~> 13.0.1)
5858
parallel (1.27.0)
5959
parser (3.3.8.0)
@@ -137,7 +137,7 @@ DEPENDENCIES
137137
beaker-docker (~> 1.4.0)
138138
beaker-rspec
139139
dotenv (~> 2.1)
140-
ood_packaging (~> 0.17.1)
140+
ood_packaging (~> 0.18.0)
141141
rake
142142
rspec
143143
rubocop

packaging/deb/control

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Maintainer: Ohio Supercomputer Center <[email protected]>
55
Build-Depends: debhelper (>=11~), curl, build-essential,
66
tzdata, libxml2-dev, libxslt-dev, pkg-config, zlib1g-dev, liblzma-dev,
77
ruby, ruby-dev, libyaml-dev, libxml2,
8-
nodejs (>= 20.0), nodejs (<< 21.0),
8+
nodejs (>= 22.0), nodejs (<< 23.0),
99
sqlite3, libsqlite3-dev, python3@EXTRA_DEPENDS@
1010
Standards-Version: 4.1.4
1111
Homepage: https://openondemand.org
@@ -15,9 +15,9 @@ Architecture: any
1515
Multi-Arch: foreign
1616
Depends: ${misc:Depends}, ${shlibs:Depends},
1717
ruby, apache2, sudo, lsof, lua-posix, tzdata, file,
18-
nodejs (>= 20.0), nodejs (<< 21.0),
19-
ondemand-nginx (>= 1.26.1.p6.0.23.ood4.0.3), ondemand-nginx (<< 1.27),
20-
ondemand-passenger (>= 6.0.23.ood4.0.3), ondemand-passenger (<< 6.0.24),
18+
nodejs (>= 22.0), nodejs (<< 23.0),
19+
ondemand-nginx (>= 1.26.3.p6.1.0.ood4.1.0), ondemand-nginx (<< 1.27),
20+
ondemand-passenger (>= 6.1.0.ood4.1.0), ondemand-passenger (<< 6.1.1),
2121
Recommends: rclone
2222
Description: Open OnDemand is an open source release of the Ohio SuperComputer Center's
2323
OnDemand platform to provide HPC access via a web browser, supporting web based file

packaging/rpm/ondemand.spec

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
%define git_tag_minus_v %(echo %{git_tag} | sed -r 's/^v//')
66
%define major_version %(echo %{git_tag_minus_v} | cut -d. -f1)
77
%define minor_version %(echo %{git_tag_minus_v} | cut -d. -f2)
8-
%define runtime_version %{major_version}.%{minor_version}.3
8+
%define runtime_version %{major_version}.%{minor_version}.0
99
%define runtime_release 1
1010
%define runtime_version_full %{runtime_version}-%{runtime_release}%{?dist}
1111
# Use hardcoded RHEL 9.5 for a short period while downstream RHEL clones get RHEL 9.6 release
@@ -67,7 +67,12 @@ BuildRequires: ondemand-ruby = %{runtime_version_full}
6767
BuildRequires: ondemand-nodejs = %{runtime_version_full}
6868
BuildRequires: rsync
6969
BuildRequires: git
70+
# Force Python 3.12 for EL8 as Python 3.6 does not work with node-gyp
71+
%if 0%{?rhel} == 8
72+
BuildRequires: python3.12
73+
%else
7074
BuildRequires: python3
75+
%endif
7176
BuildRequires: libffi-devel
7277
BuildRequires: libyaml-devel
7378

@@ -79,8 +84,8 @@ Requires: python3
7984
Requires: rclone
8085
%endif
8186
Requires: ondemand-apache = %{runtime_version_full}
82-
Requires: ondemand-nginx = 1.26.1-3.p6.0.23.ood%{runtime_version}%{?dist}
83-
Requires: ondemand-passenger = 6.0.23-3.ood%{runtime_version}%{?dist}
87+
Requires: ondemand-nginx = 1.26.3-1.p6.1.0.ood%{runtime_version}%{?dist}
88+
Requires: ondemand-passenger = 6.1.0-1.ood%{runtime_version}%{?dist}
8489
Requires: ondemand-ruby = %{runtime_version_full}
8590
Requires: ondemand-nodejs = %{runtime_version_full}
8691
Requires: ondemand-runtime = %{runtime_version_full}

spec/e2e/e2e_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def bootstrap_repos
120120
when 'redhat'
121121
repos << 'epel-release'
122122
on hosts, 'dnf -y module enable ruby:3.3'
123-
on hosts, 'dnf -y module enable nodejs:20'
123+
on hosts, 'dnf -y module enable nodejs:22'
124124
when 'ubuntu', 'debian'
125125
on hosts, 'apt-get update'
126126
end
@@ -161,7 +161,7 @@ def ondemand_repo
161161
end
162162

163163
def build_repo_version
164-
ENV['OOD_BUILD_REPO'] || '4.0'
164+
ENV['OOD_BUILD_REPO'] || '4.1'
165165
end
166166

167167
def install_ondemand
@@ -182,8 +182,8 @@ def install_ondemand
182182
install_packages(['ondemand', 'ondemand-dex'])
183183
end
184184
if host_inventory['platform'] == 'amazon'
185-
on hosts, 'alternatives --install /usr/bin/node node /usr/bin/node-20 1'
186-
on hosts, 'alternatives --install /usr/bin/npm npm /usr/bin/npm-20 1'
185+
on hosts, 'alternatives --install /usr/bin/node node /usr/bin/node-22 1'
186+
on hosts, 'alternatives --install /usr/bin/npm npm /usr/bin/npm-22 1'
187187
end
188188
# Avoid 'update_ood_portal --rpm' so that --insecure can be used
189189
on hosts, "sed -i 's|--rpm|--rpm --insecure|g' /etc/systemd/system/#{apache_service}.service.d/ood-portal.conf"

0 commit comments

Comments
 (0)