Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support building for Ubuntu 24.04 #277

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- el9
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
- debian-12
- amzn2023
arch:
Expand All @@ -31,6 +32,8 @@ jobs:
arch: ppc64le
- dist: ubuntu-22.04
arch: ppc64le
- dist: ubuntu-24.04
arch: ppc64le
runs-on: ${{ matrix.os }}
name: Buildbox tests
steps:
Expand Down Expand Up @@ -175,6 +178,7 @@ jobs:
dist:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
- debian-12
arch:
- x86_64
Expand Down Expand Up @@ -247,6 +251,7 @@ jobs:
- el9
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
- debian-12
- amzn2023
arch:
Expand All @@ -273,6 +278,8 @@ jobs:
arch: ppc64le
- dist: ubuntu-22.04
arch: ppc64le
- dist: ubuntu-24.04
arch: ppc64le
runs-on: ${{ matrix.os }}
name: Package ${{ matrix.package }} dist=${{ matrix.dist }} arch=${{ matrix.arch }}
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- amzn2023
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
- debian-12
arch:
- x86_64
Expand All @@ -28,6 +29,8 @@ jobs:
arch: ppc64le
- dist: ubuntu-22.04
arch: ppc64le
- dist: ubuntu-24.04
arch: ppc64le
name: Release buildbox
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 6 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ build-image:
OOD_PACKAGING_GPG_PRIVATE_KEY: /systems/osc_certs/gpg/ondemand/ondemand.sec
- OOD_PACKAGING_DIST: [el9, debian-12]
OOD_PACKAGING_ARCH: [x86_64, aarch64, ppc64le]
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04]
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
OOD_PACKAGING_ARCH: [x86_64, aarch64]
- OOD_PACKAGING_DIST: [amzn2023]
OOD_PACKAGING_ARCH: [x86_64, aarch64]
Expand All @@ -51,7 +51,8 @@ build-ondemand-release:
parallel:
matrix:
- OOD_PACKAGING_DIST: [el8, el9, amzn2023]
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04, debian-12]
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
- OOD_PACKAGING_DIST: [debian-12]
artifacts:
paths:
- tmp/output
Expand All @@ -69,7 +70,8 @@ build-ondemand-release-latest:
parallel:
matrix:
- OOD_PACKAGING_DIST: [el8, el9, amzn2023]
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04, debian-12]
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
- OOD_PACKAGING_DIST: [debian-12]
artifacts:
paths:
- tmp/output
Expand Down Expand Up @@ -132,7 +134,7 @@ build-passenger:
OOD_PACKAGING_GPG_PRIVATE_KEY: /systems/osc_certs/gpg/ondemand/ondemand.sec
- OOD_PACKAGING_DIST: [el9, debian-12]
OOD_PACKAGING_ARCH: [x86_64, aarch64, ppc64le]
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04]
- OOD_PACKAGING_DIST: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
OOD_PACKAGING_ARCH: [x86_64, aarch64]
- OOD_PACKAGING_DIST: [amzn2023]
# Amazon aarch64 takes hours so build by hand for now
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ood_packaging (0.14.1)
ood_packaging (0.15.0)
rake (~> 13.0.1)

GEM
Expand Down
2 changes: 2 additions & 0 deletions lib/ood_packaging/build_box.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ class OodPackaging::BuildBox
'el9' => 'almalinux:9',
'ubuntu-20.04' => 'ubuntu:20.04',
'ubuntu-22.04' => 'ubuntu:22.04',
'ubuntu-24.04' => 'ubuntu:24.04',
'debian-12' => 'debian:12',
'amzn2023' => 'amazonlinux:2023'
}.freeze

CODENAMES = {
'ubuntu-20.04' => 'focal',
'ubuntu-22.04' => 'jammy',
'ubuntu-24.04' => 'noble',
'debian-12' => 'bookworm'
}.freeze

Expand Down
6 changes: 3 additions & 3 deletions lib/ood_packaging/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# Version code for OodPackaging
module OodPackaging
VERSION = '0.14.1'
VERSION = '0.15.0'
PACKAGE_VERSION = {
'ondemand-release' => {
'(ubuntu|debian)' => '3.1.1',
'(ubuntu|debian)' => '3.1.2',
'default' => '3.1'
},
'ondemand-release-latest' => {
'(ubuntu|debian)' => '3',
'(ubuntu|debian)' => '4',
'default' => '1-8'
},
'ondemand-runtime' => '3.1.5',
Expand Down
4 changes: 3 additions & 1 deletion packages/ondemand-release-latest/deb/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ override_dh_auto_install:
mkdir -p $(WEB_DESTDIR)/etc/apt/trusted.gpg.d
echo "deb https://apt.osc.edu/ondemand/latest/web/apt $(CODENAME) main" > $(WEB_DESTDIR)/etc/apt/sources.list.d/ondemand-web.list
install -m 644 -D $(CURDIR)/ondemand.gpg $(WEB_DESTDIR)/etc/apt/trusted.gpg.d/ondemand-web.gpg
# Debian 12 (bookworm) has NodeJS 18 in OS repos
# Debian 12 (bookworm) and Ubuntu 24.04 (noble)
# have NodeJS 18 in OS repos
ifeq ($(CODENAME),bookworm)
else ifeq ($(CODENAME),noble)
else
echo "deb https://deb.nodesource.com/$(NODEREPO) nodistro main" > $(WEB_DESTDIR)/etc/apt/sources.list.d/nodesource.list
curl -s https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor > $(WEB_DESTDIR)/etc/apt/trusted.gpg.d/nodesource.gpg
Expand Down
4 changes: 3 additions & 1 deletion packages/ondemand-release/deb/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ override_dh_auto_install:
mkdir -p $(WEB_DESTDIR)/etc/apt/trusted.gpg.d
echo "deb https://apt.osc.edu/ondemand/$(REPO)/web/apt $(CODENAME) main" > $(WEB_DESTDIR)/etc/apt/sources.list.d/ondemand-web.list
install -m 644 -D $(CURDIR)/ondemand.gpg $(WEB_DESTDIR)/etc/apt/trusted.gpg.d/ondemand-web.gpg
# Debian 12 (bookworm) has NodeJS 18 in OS repos
# Debian 12 (bookworm) and Ubuntu 24.04 (noble)
# have NodeJS 18 in OS repos
ifeq ($(CODENAME),bookworm)
else ifeq ($(CODENAME),noble)
else
echo "deb https://deb.nodesource.com/$(NODEREPO) nodistro main" > $(WEB_DESTDIR)/etc/apt/sources.list.d/nodesource.list
curl -s https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor > $(WEB_DESTDIR)/etc/apt/trusted.gpg.d/nodesource.gpg
Expand Down
7 changes: 4 additions & 3 deletions release-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ ondemand-release:
versions:
- '{major}-1'
# deb package
- '{major}.1-focal'
- '{major}.1-jammy'
- '{major}.1-bookworm'
- '{major}.2-focal'
- '{major}.2-jammy'
- '{major}.2-noble'
- '{major}.2-bookworm'

# web
cjose:
Expand Down
1 change: 1 addition & 0 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'ubuntu-18.04': 'bionic',
'ubuntu-20.04': 'focal',
'ubuntu-22.04': 'jammy',
'ubuntu-24.04': 'noble',
'debian-12': 'bookworm',
}
PROJ_ROOT = os.path.dirname(os.path.realpath(__file__))
Expand Down
3 changes: 3 additions & 0 deletions repo-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ LOCK_FILE="/var/lib/oodpkg/repo-update-${LOCK_NAME}.lock"
debian-12|bookworm)
DIST="bookworm"
;;
ubuntu-24.04|noble)
DIST="noble"
;;
ubuntu-22.04|jammy)
DIST="jammy"
;;
Expand Down
2 changes: 1 addition & 1 deletion spec/ood_packaging/ood_packaging_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
end

it 'gets package version for dist ubuntu-20.04' do
expect(described_class.package_version('ondemand-release-latest', 'ubuntu-20.04')).to eq('3')
expect(described_class.package_version('ondemand-release-latest', 'ubuntu-20.04')).to eq('4')
end
end
2 changes: 2 additions & 0 deletions sync-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'amzn2023',
'ubuntu-20.04',
'ubuntu-22.04',
'ubuntu-24.04',
'debian-12'
]
EL_RELEASES = [
Expand All @@ -32,6 +33,7 @@
DEB_CODENAMES = [
'focal',
'jammy',
'noble',
'bookworm'
]
SKIP = [
Expand Down
Loading