Skip to content

Commit 1ca4339

Browse files
authored
Merge pull request #288 from gfaugere/main
[vgpu-manager/ubuntu22.04] Install gcc-12 in vgpu driver manager container
2 parents c596c2a + 94f317d commit 1ca4339

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vgpu-manager/ubuntu22.04/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1818
pciutils && \
1919
rm -rf /var/lib/apt/lists/*
2020

21+
# Install the gcc-12 package in Ubuntu 22.04 as Kernels with versions 5.19.x and 6.5.x need gcc 12.3.0 for compilation
22+
RUN apt-get update && \
23+
apt-get install -y --no-install-recommends gcc-12 g++-12 && \
24+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 && \
25+
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12 && \
26+
rm -rf /var/lib/apt/lists/*
27+
2128
RUN echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main universe" > /etc/apt/sources.list && \
2229
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main universe" >> /etc/apt/sources.list && \
2330
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-security main universe" >> /etc/apt/sources.list && \

0 commit comments

Comments
 (0)