Skip to content

Commit 1c73ff0

Browse files
committed
add ubuntu24.04 driver container
Signed-off-by: Tariq Ibrahim <[email protected]>
1 parent 27cf78e commit 1c73ff0

File tree

14 files changed

+1448
-20
lines changed

14 files changed

+1448
-20
lines changed

.common-ci.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ trigger-pipeline:
7575
matrix:
7676
- DRIVER_VERSION: [535.183.06, 550.90.12, 560.35.03]
7777

78-
# Define the driver versions for jobs that can be run in parallel for ubuntu22.04
79-
.driver-versions-ubuntu22.04:
78+
# Define the driver versions for jobs that can be run in parallel for ubuntu24.04
79+
.driver-versions-ubuntu24.04:
8080
parallel:
8181
matrix:
82-
- DRIVER_VERSION: [535.183.06, 550.90.12, 560.35.03]
82+
- DRIVER_VERSION: [550.90.12, 560.35.03]
8383

8484
# Define the matrix of precompiled jobs that can be run in parallel for ubuntu22.04
8585
.driver-versions-precompiled-ubuntu22.04:
@@ -88,12 +88,6 @@ trigger-pipeline:
8888
- DRIVER_BRANCH: [535, 550]
8989
KERNEL_FLAVOR: [aws, azure, generic, nvidia, oracle]
9090

91-
# Define the driver versions for jobs that can be run in parallel for rhel9
92-
.driver-versions-rhel9:
93-
parallel:
94-
matrix:
95-
- DRIVER_VERSION: [535.183.06, 550.90.12, 560.35.03]
96-
9791
# Define the distribution targets
9892
.dist-ubuntu20.04:
9993
variables:
@@ -105,6 +99,10 @@ trigger-pipeline:
10599
DIST: ubuntu22.04
106100
CVE_UPDATES: "openssl"
107101

102+
.dist-ubuntu24.04:
103+
variables:
104+
DIST: ubuntu24.04
105+
108106
.dist-rhel8:
109107
variables:
110108
DIST: rhel8
@@ -170,15 +168,23 @@ trigger-pipeline:
170168
# Perform for each DRIVER_VERSION
171169
extends:
172170
- .release-generic
173-
- .driver-versions-ubuntu22.04
171+
- .driver-versions
172+
rules:
173+
- if: $CI_PIPELINE_SOURCE != "schedule"
174+
175+
.release-ubuntu24.04:
176+
# Perform for each DRIVER_VERSION
177+
extends:
178+
- .release-generic
179+
- .driver-versions-ubuntu24.04
174180
rules:
175181
- if: $CI_PIPELINE_SOURCE != "schedule"
176182

177183
.release-rhel9:
178184
# Perform for each DRIVER_VERSION
179185
extends:
180186
- .release-generic
181-
- .driver-versions-rhel9
187+
- .driver-versions
182188
rules:
183189
- if: $CI_PIPELINE_SOURCE != "schedule"
184190

@@ -211,6 +217,15 @@ trigger-pipeline:
211217
OUT_REGISTRY: "${CI_REGISTRY}"
212218
OUT_IMAGE_NAME: "${CI_REGISTRY_IMAGE}/staging/driver"
213219

220+
.release:staging-ubuntu24.04:
221+
extends:
222+
- .release-ubuntu24.04
223+
variables:
224+
OUT_REGISTRY_USER: "${CI_REGISTRY_USER}"
225+
OUT_REGISTRY_TOKEN: "${CI_REGISTRY_PASSWORD}"
226+
OUT_REGISTRY: "${CI_REGISTRY}"
227+
OUT_IMAGE_NAME: "${CI_REGISTRY_IMAGE}/staging/driver"
228+
214229
.release:staging-rhel9:
215230
extends:
216231
- .release-rhel9

.github/workflows/image.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
dist:
4141
- ubuntu20.04
4242
- ubuntu22.04
43+
- ubuntu24.04
4344
- rhel8
4445
- rhel9
4546
ispr:
@@ -53,6 +54,8 @@ jobs:
5354
- ispr: true
5455
dist: ubuntu20.04
5556
driver: 550.90.12
57+
- dist: ubuntu24.04
58+
driver: 535.183.06
5659
fail-fast: false
5760
steps:
5861
- uses: actions/checkout@v4

.gitlab-ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,16 @@ include:
4444
.image-build-ubuntu22.04:
4545
# Perform for each DRIVER_VERSION
4646
extends:
47-
- .driver-versions-ubuntu22.04
47+
- .driver-versions
48+
- .image-build-generic
49+
rules:
50+
- if: $CI_PIPELINE_SOURCE != "schedule"
51+
52+
# Define the image build targets
53+
.image-build-ubuntu24.04:
54+
# Perform for each DRIVER_VERSION
55+
extends:
56+
- .driver-versions-ubuntu24.04
4857
- .image-build-generic
4958
rules:
5059
- if: $CI_PIPELINE_SOURCE != "schedule"
@@ -53,7 +62,7 @@ include:
5362
.image-build-rhel9:
5463
# Perform for each DRIVER_VERSION
5564
extends:
56-
- .driver-versions-rhel9
65+
- .driver-versions
5766
- .image-build-generic
5867
rules:
5968
- if: $CI_PIPELINE_SOURCE != "schedule"
@@ -69,6 +78,11 @@ image-ubuntu22.04:
6978
- .image-build-ubuntu22.04
7079
- .dist-ubuntu22.04
7180

81+
image-ubuntu24.04:
82+
extends:
83+
- .image-build-ubuntu24.04
84+
- .dist-ubuntu24.04
85+
7286
image-rhel8:
7387
extends:
7488
- .image-build

.nvidia-ci.yml

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ variables:
8080
.image-pull-ubuntu22.04:
8181
# Perform for each DRIVER_VERSION
8282
extends:
83-
- .driver-versions-ubuntu22.04
83+
- .driver-versions
8484
- .image-pull-generic
8585
rules:
8686
- if: $CI_PIPELINE_SOURCE == "schedule"
@@ -119,7 +119,7 @@ image-rhel9:
119119
extends:
120120
- .image-pull
121121
- .dist-rhel9
122-
- .driver-versions-rhel9
122+
- .driver-versions
123123

124124
# The .scan step forms the base of the image scan operation performed before releasing
125125
# images.
@@ -181,7 +181,19 @@ image-rhel9:
181181
.scan-ubuntu22.04:
182182
# Repeat for each DRIVER_VERSION
183183
extends:
184-
- .driver-versions-ubuntu22.04
184+
- .driver-versions
185+
- .scan-generic
186+
rules:
187+
- !reference [.scan-rules-common, rules]
188+
- if: $CI_PIPELINE_SOURCE == "schedule"
189+
when: never
190+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
191+
- !reference [.pipeline-trigger-rules, rules]
192+
193+
.scan-ubuntu24.04:
194+
# Repeat for each DRIVER_VERSION
195+
extends:
196+
- .driver-versions-ubuntu24.04
185197
- .scan-generic
186198
rules:
187199
- !reference [.scan-rules-common, rules]
@@ -235,6 +247,22 @@ scan-ubuntu22.04-arm64:
235247
needs:
236248
- image-ubuntu22.04
237249

250+
scan-ubuntu24.04-amd64:
251+
extends:
252+
- .scan-ubuntu24.04
253+
- .dist-ubuntu24.04
254+
- .platform-amd64
255+
needs:
256+
- image-ubuntu24.04
257+
258+
scan-ubuntu24.04-arm64:
259+
extends:
260+
- .scan-ubuntu24.04
261+
- .dist-ubuntu24.04
262+
- .platform-arm64
263+
needs:
264+
- image-ubuntu24.04
265+
238266
scan-precompiled-ubuntu22.04-amd64:
239267
variables:
240268
PLATFORM: linux/amd64
@@ -265,7 +293,7 @@ scan-rhel9-amd64:
265293
- .scan
266294
- .dist-rhel9
267295
- .platform-amd64
268-
- .driver-versions-rhel9
296+
- .driver-versions
269297
needs:
270298
- image-rhel9
271299

@@ -274,7 +302,7 @@ scan-rhel9-arm64:
274302
- .scan
275303
- .dist-rhel9
276304
- .platform-arm64
277-
- .driver-versions-rhel9
305+
- .driver-versions
278306
needs:
279307
- image-rhel9
280308

@@ -300,7 +328,13 @@ release:ngc-ubuntu22.04:
300328
extends:
301329
- .release:ngc
302330
- .dist-ubuntu22.04
303-
- .driver-versions-ubuntu22.04
331+
- .driver-versions
332+
333+
release:ngc-ubuntu24.04:
334+
extends:
335+
- .release:ngc
336+
- .dist-ubuntu24.04
337+
- .driver-versions-ubuntu24.04
304338

305339
release:ngc-precompiled-ubuntu22.04:
306340
variables:
@@ -478,6 +512,9 @@ sign:ngc-ubuntu-rhel-rhcos:
478512
- SIGN_JOB_NAME: ["ubuntu"]
479513
VERSION: ["20.04"]
480514
DRIVER_VERSION: ["535.183.06", "550.90.12", "560.35.03"]
515+
- SIGN_JOB_NAME: ["ubuntu"]
516+
VERSION: ["24.04"]
517+
DRIVER_VERSION: ["550.90.12", "560.35.03"]
481518
- SIGN_JOB_NAME: ["rhel"]
482519
VERSION: ["8.8", "8.10"]
483520
DRIVER_VERSION: ["535.183.06", "550.90.12", "560.35.03"]

Makefile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ OUT_IMAGE_TAG = $(OUT_IMAGE_VERSION)-$(OUT_DIST)
5454
OUT_IMAGE = $(OUT_IMAGE_NAME):$(OUT_IMAGE_TAG)
5555

5656
##### Public rules #####
57-
DISTRIBUTIONS := ubuntu18.04 ubuntu20.04 ubuntu22.04 signed_ubuntu20.04 signed_ubuntu22.04 rhel8 rhel9 flatcar fedora36 sles15.3 precompiled_rhcos
57+
DISTRIBUTIONS := ubuntu18.04 ubuntu20.04 ubuntu22.04 ubuntu24.04 signed_ubuntu20.04 signed_ubuntu22.04 rhel8 rhel9 flatcar fedora36 sles15.3 precompiled_rhcos
5858
PUSH_TARGETS := $(patsubst %, push-%, $(DISTRIBUTIONS))
5959
BASE_FROM := jammy focal
6060
PUSH_TARGETS := $(patsubst %, push-%, $(DISTRIBUTIONS))
@@ -92,6 +92,10 @@ pull-signed_ubuntu22.04%: DIST = ubuntu22.04
9292
pull-signed_ubuntu22.04%: DRIVER_TAG = $(DRIVER_BRANCH)
9393
pull-signed_ubuntu22.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
9494

95+
pull-signed_ubuntu24.04%: DIST = ubuntu24.04
96+
pull-signed_ubuntu24.04%: DRIVER_TAG = $(DRIVER_BRANCH)
97+
pull-signed_ubuntu24.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
98+
9599
PLATFORM ?= linux/amd64
96100
$(DRIVER_PULL_TARGETS): pull-%:
97101
$(DOCKER) pull "--platform=$(PLATFORM)" "$(IMAGE)"
@@ -109,6 +113,10 @@ archive-signed_ubuntu22.04%: DIST = ubuntu22.04
109113
archive-signed_ubuntu22.04%: DRIVER_TAG = $(DRIVER_BRANCH)
110114
archive-signed_ubuntu22.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
111115

116+
archive-signed_ubuntu24.04%: DIST = ubuntu24.04
117+
archive-signed_ubuntu24.04%: DRIVER_TAG = $(DRIVER_BRANCH)
118+
archive-signed_ubuntu24.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
119+
112120
$(DRIVER_ARCHIVE_TARGETS): archive-%:
113121
$(DOCKER) save "$(IMAGE)" -o "archive.tar"
114122

@@ -130,6 +138,11 @@ push-signed_ubuntu22.04%: DRIVER_TAG = $(DRIVER_BRANCH)
130138
push-signed_ubuntu22.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
131139
push-signed_ubuntu22.04%: OUT_IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
132140

141+
push-signed_ubuntu24.04%: DIST = ubuntu24.04
142+
push-signed_ubuntu24.04%: DRIVER_TAG = $(DRIVER_BRANCH)
143+
push-signed_ubuntu24.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
144+
push-signed_ubuntu24.04%: OUT_IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
145+
133146
# $(DRIVER_BUILD_TARGETS) is in the form of build-$(DIST)-$(DRIVER_VERSION)
134147
# Parse the target to set the required variables.
135148
build-%: DIST = $(word 2,$(subst -, ,$@))
@@ -176,6 +189,13 @@ build-signed_ubuntu22.04%: DRIVER_TAG = $(DRIVER_BRANCH)
176189
build-signed_ubuntu22.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
177190
build-signed_ubuntu22.04%: DOCKER_BUILD_ARGS = --build-arg KERNEL_VERSION="$(KERNEL_VERSION)"
178191

192+
# ubuntu24.04 Precompiled Driver
193+
build-signed_ubuntu24.04%: DIST = ubuntu24.04
194+
build-signed_ubuntu24.04%: SUBDIR = ubuntu24.04/precompiled
195+
build-signed_ubuntu24.04%: DRIVER_TAG = $(DRIVER_BRANCH)
196+
build-signed_ubuntu24.04%: IMAGE_TAG = $(DRIVER_BRANCH)-$(KERNEL_VERSION)-$(DIST)
197+
build-signed_ubuntu24.04%: DOCKER_BUILD_ARGS = --build-arg KERNEL_VERSION="$(KERNEL_VERSION)"
198+
179199
# base is an image used to poll Canonical for the latest kernel version
180200
build-base-%: DOCKERFILE = $(CURDIR)/base/Dockerfile
181201
build-base-%: TARGET = $(word 3,$(subst -, ,$@))

multi-arch.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ $(DRIVER_PUSH_TARGETS): push-%:
2727
build-ubuntu18.04%: DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64
2828
build-signed_ubuntu20.04%: DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64
2929
build-signed_ubuntu22.04%: DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64
30+
build-signed_ubuntu24.04%: DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64
3031
build-sles%: DOCKER_BUILD_PLATFORM_OPTIONS = --platform=linux/amd64

0 commit comments

Comments
 (0)