diff --git a/docker/images/centos-8streams.Dockerfile b/docker/images/centos-8streams.Dockerfile index 29752c5d98..b916ab760c 100644 --- a/docker/images/centos-8streams.Dockerfile +++ b/docker/images/centos-8streams.Dockerfile @@ -17,6 +17,10 @@ json-c-devel \ perf \ numactl +RUN dnf -y install gcc-toolset-12 +RUN echo "source /opt/rh/gcc-toolset-12/enable" >> /etc/bashrc +SHELL ["/bin/bash", "--login", "-c"] + COPY ./install-cachelib-deps.sh ./install-cachelib-deps.sh RUN ./install-cachelib-deps.sh diff --git a/docker/run-build.sh b/docker/run-build.sh index 02c7caf731..bc04819f18 100755 --- a/docker/run-build.sh +++ b/docker/run-build.sh @@ -11,6 +11,9 @@ function sudo_password() { cd .. mkdir build cd build + +source /opt/rh/gcc-toolset-12/enable + cmake ../cachelib -DBUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=/opt -DCMAKE_BUILD_TYPE=Debug sudo_password make install -j$(nproc)