mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
ci: add cuda13.0 base image
Include support for cross-compiling to aarch64.
This commit is contained in:
32
.gitlab/ci/docker/cuda13.0/Dockerfile
Normal file
32
.gitlab/ci/docker/cuda13.0/Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG BASE_IMAGE=kitware/nvidia-cuda:13.0.1-devel-ubuntu24.04
|
||||
|
||||
FROM ${BASE_IMAGE} AS apt-config
|
||||
ADD https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/cross-linux-sbsa/cuda-keyring_1.1-1_all.deb /root/
|
||||
RUN --mount=type=tmpfs,target=/var/log \
|
||||
dpkg -i /root/cuda-keyring_1.1-1_all.deb \
|
||||
&& rm /root/cuda-keyring_1.1-1_all.deb
|
||||
|
||||
FROM apt-config AS apt-cache
|
||||
# Populate APT cache w/ the fresh metadata and prefetch packages.
|
||||
# Use an empty `docker-clean` file to "hide" the image-provided
|
||||
# file to disallow removing packages after `apt-get` operations.
|
||||
RUN --mount=type=tmpfs,target=/var/log \
|
||||
--mount=type=bind,source=docker-clean,target=/etc/apt/apt.conf.d/docker-clean \
|
||||
--mount=type=bind,source=deps_packages.lst,target=/root/deps_packages.lst \
|
||||
apt-get update \
|
||||
&& apt-get --download-only -y install $(grep -h '^[^#]\+$' /root/*.lst)
|
||||
|
||||
FROM apt-config
|
||||
MAINTAINER Brad King <brad.king@kitware.com>
|
||||
|
||||
RUN --mount=type=bind,source=install_deps.sh,target=/root/install_deps.sh \
|
||||
--mount=type=bind,source=deps_packages.lst,target=/root/deps_packages.lst \
|
||||
--mount=type=bind,source=dpkg-exclude,target=/etc/dpkg/dpkg.cfg.d/exclude \
|
||||
--mount=type=bind,source=docker-clean,target=/etc/apt/apt.conf.d/docker-clean \
|
||||
--mount=type=cache,from=apt-cache,source=/var/lib/apt/lists,target=/var/lib/apt/lists \
|
||||
--mount=type=cache,from=apt-cache,source=/var/cache/apt,target=/var/cache/apt,sharing=private \
|
||||
--mount=type=tmpfs,target=/var/log \
|
||||
--mount=type=tmpfs,target=/tmp \
|
||||
sh /root/install_deps.sh
|
||||
11
.gitlab/ci/docker/cuda13.0/deps_packages.lst
Normal file
11
.gitlab/ci/docker/cuda13.0/deps_packages.lst
Normal file
@@ -0,0 +1,11 @@
|
||||
# Host tools
|
||||
curl
|
||||
git
|
||||
|
||||
# Compilers
|
||||
g++
|
||||
g++-aarch64-linux-gnu
|
||||
|
||||
# CUDA Extras
|
||||
cuda-cross-sbsa-13-0
|
||||
cuda-opencl-dev-13-0
|
||||
0
.gitlab/ci/docker/cuda13.0/docker-clean
Normal file
0
.gitlab/ci/docker/cuda13.0/docker-clean
Normal file
21
.gitlab/ci/docker/cuda13.0/dpkg-exclude
Normal file
21
.gitlab/ci/docker/cuda13.0/dpkg-exclude
Normal file
@@ -0,0 +1,21 @@
|
||||
# Drop all man pages
|
||||
path-exclude=/usr/share/man/*
|
||||
|
||||
# Drop all info pages
|
||||
path-exclude=/usr/share/info/*
|
||||
|
||||
# Drop all README files except from the some packages
|
||||
path-exclude=/usr/**/*README*
|
||||
path-include=/usr/share/devscripts/templates/README.mk-build-deps
|
||||
path-include=/usr/share/equivs/template/debian/README.Debian.in
|
||||
|
||||
# Drop all translations
|
||||
path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo
|
||||
|
||||
# Drop all documentation ...
|
||||
path-exclude=/usr/share/doc/*
|
||||
path-exclude=/usr/share/doc-base/*
|
||||
path-exclude=/usr/share/gtk-doc/*
|
||||
|
||||
# Per package excludes
|
||||
path-exclude=/usr/share/gnupg/help.*.txt
|
||||
5
.gitlab/ci/docker/cuda13.0/install_deps.sh
Executable file
5
.gitlab/ci/docker/cuda13.0/install_deps.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
apt-get install -y $(grep '^[^#]\+$' /root/deps_packages.lst)
|
||||
Reference in New Issue
Block a user