-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install clang in release dockers (#676)
- Loading branch information
Showing
6 changed files
with
105 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
# Use the official NVIDIA CUDA development image for ubi8 - rhel compatible | ||
# Use the official NVIDIA CUDA development image for UBI8 (RHEL-compatible) | ||
FROM nvidia/cuda:12.2.2-devel-ubi8 | ||
|
||
# install cmake | ||
RUN dnf update -y && dnf install -y cmake | ||
# install ninja-build | ||
RUN dnf install -y ninja-build | ||
# Set non-interactive mode for package installations | ||
ENV DNF_YES_CLEAN_ALL=1 | ||
|
||
# Install necessary tools and dependencies | ||
RUN dnf update -y && dnf install -y \ | ||
cmake \ | ||
ninja-build \ | ||
wget \ | ||
gnupg2 \ | ||
&& dnf clean all | ||
|
||
# Add the RPM-based LLVM repository for Clang | ||
# RUN wget https://rpm.llvm.org/llvm-snapshot.gpg.key -O /etc/pki/rpm-gpg/RPM-GPG-KEY-clang && \ | ||
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-clang && \ | ||
# echo -e "[llvm]\nname=LLVM\nbaseurl=https://rpm.llvm.org/centos8/\nenabled=1\ngpgcheck=1\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-clang" > /etc/yum.repos.d/llvm.repo | ||
|
||
# Install Clang, LLDB, and LLD | ||
RUN dnf update -y && dnf install -y \ | ||
clang \ | ||
lldb \ | ||
lld \ | ||
&& dnf clean all | ||
|
||
# Verify installations | ||
RUN clang --version && cmake --version && ninja --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
# Use the official NVIDIA CUDA development image for ubi9 - rhel compatible | ||
# Use the official NVIDIA CUDA development image for UBI9 (RHEL-compatible) | ||
FROM nvidia/cuda:12.2.2-devel-ubi9 | ||
|
||
# install cmake | ||
RUN dnf update -y && dnf install -y cmake | ||
# install ninja-build | ||
RUN dnf install -y ninja-build | ||
# Set non-interactive mode for package installations | ||
ENV DNF_YES_CLEAN_ALL=1 | ||
|
||
# Install necessary packages | ||
RUN dnf update -y && dnf install -y \ | ||
cmake \ | ||
ninja-build \ | ||
wget \ | ||
tar \ | ||
gcc \ | ||
gcc-c++ \ | ||
make \ | ||
gnupg \ | ||
&& dnf clean all | ||
|
||
# Add LLVM repository for Clang installation | ||
# RUN wget https://apt.llvm.org/llvm-snapshot.gpg.key -O /etc/pki/rpm-gpg/RPM-GPG-KEY-clang && \ | ||
# echo -e "[llvm]\nname=LLVM\nbaseurl=https://apt.llvm.org/centos/\$releasever/llvm-toolchain/15.x/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-clang" > /etc/yum.repos.d/llvm.repo | ||
|
||
# Install Clang, LLDB, and LLD | ||
RUN dnf update -y && dnf install -y \ | ||
clang \ | ||
lldb \ | ||
lld \ | ||
&& dnf clean all | ||
|
||
# Verify installations | ||
RUN clang --version && cmake --version && ninja --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
# Use the official NVIDIA development runtime image for Ubuntu 22.04 | ||
FROM nvidia/cuda:12.2.2-devel-ubuntu22.04 | ||
|
||
# Install necessary packages | ||
# Set noninteractive mode for apt to prevent interactive prompts | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Add LLVM's official repository and GPG key | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
tar \ | ||
ninja-build | ||
ninja-build \ | ||
software-properties-common \ | ||
wget \ | ||
gnupg \ | ||
&& wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \ | ||
&& add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main" | ||
|
||
# Install the latest version of Clang | ||
RUN apt-get update && apt-get install -y clang lldb lld && apt-get clean | ||
|
||
RUN apt install cargo -y | ||
# Verify installations | ||
RUN clang --version && lldb --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters