Container images with LLVM Toolset
Package LLVM Toolset into portable container images on Red Hat Enterprise Linux by building on Red Hat Universal Base Images (UBI), so you can compile and debug C and C++ applications in consistent environments across development, CI, and production.
Create a custom UBI-based container with LLVM Toolset Copy linkLink copied!
LLVM Toolset packages are part of the Red Hat Universal Base Images (UBIs) repositories. To keep the container image size small, install only individual packages instead of the entire LLVM Toolset.
Before you begin Copy linkLink copied!
- An existing container file. For information on creating Containerfiles, see the Dockerfile reference page.
Procedure Copy linkLink copied!
- For an image based on RHEL 8, enter:
FROM registry.access.redhat.com/ubi8/ubi:latest RUN yum module install -y llvm-toolset - For an image based on RHEL 9, enter:
FROM registry.access.redhat.com/ubi9/ubi:latest RUN yum install -y llvm-toolset - For an image based on RHEL 10, enter:
FROM registry.access.redhat.com/ubi10/ubi:latest RUN yum install -y llvm-toolset