Skip to content

Commit a171f38

Browse files
guptaskraema
authored andcommitted
Updated the docker gcc version to 12 (#83)
updated the docker gcc version to 12 --------- Co-authored-by: Matt Rae <[email protected]>
1 parent 1593291 commit a171f38

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docker/images/centos-8streams.Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ json-c-devel \
1717
perf \
1818
numactl
1919

20+
RUN dnf -y install gcc-toolset-12
21+
RUN echo "source /opt/rh/gcc-toolset-12/enable" >> /etc/bashrc
22+
SHELL ["/bin/bash", "--login", "-c"]
23+
2024
COPY ./install-cachelib-deps.sh ./install-cachelib-deps.sh
2125
RUN ./install-cachelib-deps.sh
2226

docker/run-build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ function sudo_password() {
1111
cd ..
1212
mkdir build
1313
cd build
14+
15+
source /opt/rh/gcc-toolset-12/enable
16+
1417
cmake ../cachelib -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=/opt -DCMAKE_BUILD_TYPE=Debug
1518
sudo_password make install -j$(nproc)
1619

0 commit comments

Comments
 (0)