util-docker: Enforce cmake version >=3.24 for DRAMSys

DRAMSys requires cmake 3.24 or greater. By default neither Ubuntu 22.04
or 20.04 delevery this by APT.

In both cases wget is required. In 20.04 OpenSSL is required.

Change-Id: I51a7f8a8a46e8cf1908a120adb9289aa3907ccda
This commit is contained in:
Bobby R. Bruce
2023-11-29 21:45:22 -08:00
parent d94d6017b0
commit f256064b4a
2 changed files with 24 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ RUN apt -y update && apt -y upgrade && \
libprotobuf-dev protobuf-compiler libprotoc-dev libgoogle-perftools-dev \
python3-dev python-is-python3 doxygen libboost-all-dev \
libhdf5-serial-dev python3-pydot libpng-dev libelf-dev pkg-config pip \
python3-venv black gcc-10 g++-10 cmake python3-tk
python3-venv black gcc-10 g++-10 cmake python3-tk wget libssl-dev
RUN pip install mypy pre-commit
@@ -44,3 +44,14 @@ RUN update-alternatives --install \
/usr/bin/c++ c++ /usr/bin/g++-10 100
RUN update-alternatives --install \
/usr/bin/cc cc /usr/bin/gcc-10 100
# DRAMSys requires cmake >= 3.24.0.
RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0.tar.gz \
&& tar -xzf cmake-3.24.0.tar.gz \
&& cd cmake-3.24.0 \
&& ./bootstrap \
&& make -j`nproc` \
&& make install \
&& cd .. \
&& rm -rf cmake-3.24.0.tar.gz cmake-3.24.0

View File

@@ -31,6 +31,17 @@ RUN apt -y update && apt -y upgrade && \
apt -y install build-essential git m4 scons zlib1g zlib1g-dev \
libprotobuf-dev protobuf-compiler libprotoc-dev libgoogle-perftools-dev \
python3-dev doxygen libboost-all-dev libhdf5-serial-dev python3-pydot \
libpng-dev libelf-dev pkg-config pip python3-venv black cmake python3-tk
libpng-dev libelf-dev pkg-config pip python3-venv black python3-tk wget
RUN pip install mypy pre-commit
# DRAMSys requires cmake >= 3.24.0. APT only provides 3.22.1 for Ubuntu 22.04.
# Therefore, we install cmake from source.
RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0.tar.gz \
&& tar -xzf cmake-3.24.0.tar.gz \
&& cd cmake-3.24.0 \
&& ./bootstrap \
&& make -j`nproc` \
&& make install \
&& cd .. \
&& rm -rf cmake-3.24.0.tar.gz cmake-3.24.0