Skip to content

Commit

Permalink
Use ubuntu22.04 base images
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Jun 26, 2024
1 parent 68494d5 commit 43c8479
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 39 deletions.
16 changes: 8 additions & 8 deletions .common-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ stages:
- release

# Define the distribution targets
.dist-ubuntu20.04:
.dist-ubuntu22.04:
variables:
DIST: ubuntu20.04
DIST: ubuntu22.04

.dist-ubi8:
variables:
Expand Down Expand Up @@ -162,19 +162,19 @@ release:staging-vectoradd-ubi8:
needs:
- image-vectoradd-ubi8

release:staging-vectoradd-ubuntu20.04:
release:staging-vectoradd-ubuntu22.04:
extends:
- .release:staging
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .sample-vectoradd
needs:
- image-vectoradd-ubuntu20.04
- image-vectoradd-ubuntu22.04

release:staging-device-query-ubuntu20.04:
release:staging-device-query-ubuntu22.04:
extends:
- .release:staging
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .sample-device-query
needs:
- image-device-query-ubuntu20.04
- image-device-query-ubuntu22.04

2 changes: 1 addition & 1 deletion .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
dist:
- ubuntu20.04
- ubuntu22.04
- ubi8
sample:
- vectorAdd
Expand Down
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ include:
script:
- make -f deployments/container/Makefile build-${DIST}

image-vectoradd-ubuntu20.04:
image-vectoradd-ubuntu22.04:
extends:
- .image-build
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .sample-vectoradd

image-device-query-ubuntu20.04:
image-device-query-ubuntu22.04:
extends:
- .image-build
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .sample-device-query

image-vectoradd-ubi8:
Expand Down
44 changes: 22 additions & 22 deletions .nvidia-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ variables:
- regctl registry login "${OUT_REGISTRY}" -u "${OUT_REGISTRY_USER}" -p "${OUT_REGISTRY_TOKEN}"
- make -f deployments/container/Makefile IMAGE=${IN_REGISTRY}/${IN_IMAGE_NAME}:${IN_VERSION}-${DIST} OUT_IMAGE=${OUT_IMAGE_NAME}:${OUT_VERSION}-${DIST} push-${DIST}

image-vectoradd-ubuntu20.04:
image-vectoradd-ubuntu22.04:
extends:
- .image-pull
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .sample-vectoradd

image-vectoradd-ubi8:
Expand All @@ -78,10 +78,10 @@ image-vectoradd-ubi8:
- .dist-ubi8
- .sample-vectoradd

image-device-query-ubuntu20.04:
image-device-query-ubuntu22.04:
extends:
- .image-pull
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .sample-device-query

# The .scan step forms the base of the image scan operation performed before releasing
Expand Down Expand Up @@ -116,43 +116,43 @@ image-device-query-ubuntu20.04:
- policy_evaluation.json

# Define the scan targets
scan-vectoradd-ubuntu20.04-amd64:
scan-vectoradd-ubuntu22.04-amd64:
extends:
- .scan
- .sample-vectoradd
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .platform-amd64
needs:
- image-vectoradd-ubuntu20.04
- image-vectoradd-ubuntu22.04

scan-vectoradd-ubuntu20.04-arm64:
scan-vectoradd-ubuntu22.04-arm64:
extends:
- .scan
- .sample-vectoradd
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .platform-arm64
needs:
- image-vectoradd-ubuntu20.04
- scan-vectoradd-ubuntu20.04-amd64
- image-vectoradd-ubuntu22.04
- scan-vectoradd-ubuntu22.04-amd64

scan-device-query-ubuntu20.04-amd64:
scan-device-query-ubuntu22.04-amd64:
extends:
- .scan
- .sample-device-query
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .platform-amd64
needs:
- image-device-query-ubuntu20.04
- image-device-query-ubuntu22.04

scan-device-query-ubuntu20.04-arm64:
scan-device-query-ubuntu22.04-arm64:
extends:
- .scan
- .sample-device-query
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .platform-arm64
needs:
- image-device-query-ubuntu20.04
- scan-device-query-ubuntu20.04-amd64
- image-device-query-ubuntu22.04
- scan-device-query-ubuntu22.04-amd64

scan-vectoradd-ubi8-amd64:
extends:
Expand Down Expand Up @@ -185,16 +185,16 @@ scan-vectoradd-ubi8-arm64:

# Define the external release targets
# Release to NGC
release:ngc-vectoradd-ubuntu20.04:
release:ngc-vectoradd-ubuntu22.04:
extends:
- .release:ngc
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .sample-vectoradd

release:ngc-device-query-ubuntu20.04:
release:ngc-device-query-ubuntu22.04:
extends:
- .release:ngc
- .dist-ubuntu20.04
- .dist-ubuntu22.04
- .sample-device-query

release:ngc-vectoradd-ubi8:
Expand Down
4 changes: 2 additions & 2 deletions deployments/container/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM nvidia/cuda:12.5.0-devel-ubuntu20.04 AS builder
FROM nvidia/cuda:12.5.0-devel-ubuntu22.04 AS builder

ARG SAMPLE_NAME
ENV SAMPLE_NAME ${SAMPLE_NAME}
Expand Down Expand Up @@ -41,7 +41,7 @@ RUN curl -L https://codeload.github.com/NVIDIA/cuda-samples/tar.gz/refs/tags/${C
make build && \
cp $(find /build/bin -iname "${SAMPLE_NAME}") /build/${SAMPLE_NAME}

FROM nvidia/cuda:12.5.0-base-ubuntu20.04
FROM nvidia/cuda:12.5.0-base-ubuntu22.04
ARG SAMPLE_NAME
LABEL io.k8s.display-name="NVIDIA CUDA ${SAMPLE_NAME} sample"
LABEL name="NVIDIA CUDA ${SAMPLE_NAME} sample"
Expand Down
4 changes: 2 additions & 2 deletions deployments/container/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ OUT_IMAGE_VERSION ?= $(VERSION)
OUT_IMAGE_TAG ?= $(LOWER_CASE_SAMPLE)-$(OUT_IMAGE_VERSION)-$(DIST)
OUT_IMAGE = $(OUT_IMAGE_NAME):$(OUT_IMAGE_TAG)

DEFAULT_PUSH_TARGET := ubuntu20.04
DISTRIBUTIONS := ubuntu20.04 ubi8
DEFAULT_PUSH_TARGET := ubuntu22.04
DISTRIBUTIONS := ubuntu22.04 ubi8

BUILD_TARGETS := $(patsubst %,build-%, $(DISTRIBUTIONS))
PUSH_TARGETS := $(patsubst %,push-%, $(DISTRIBUTIONS))
Expand Down

0 comments on commit 43c8479

Please sign in to comment.