From 3299ae6f73556fbbe8d35f620907f32d55863ecf Mon Sep 17 00:00:00 2001 From: "Galantsev, Dmitrii" Date: Thu, 2 May 2024 15:41:49 -0500 Subject: [PATCH] DOCKER - Lock to 22.04 and install modern cmake Change-Id: I032ef3c0b968a622cca49342f7e85170fc300b7f Signed-off-by: Galantsev, Dmitrii [ROCm/amdsmi commit: a5f889930a3e69c781c1cec59c1dc3a9db5032f8] --- projects/amdsmi/py-interface/Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/projects/amdsmi/py-interface/Dockerfile b/projects/amdsmi/py-interface/Dockerfile index 5218f76946..d158c521bf 100644 --- a/projects/amdsmi/py-interface/Dockerfile +++ b/projects/amdsmi/py-interface/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:latest +FROM ubuntu:22.04 # do not prompt in apt # https://github.com/moby/moby/issues/4032#issuecomment-163689851 @@ -25,7 +25,7 @@ RUN apt update --yes \ && apt clean \ && rm -rf /var/cache/apt/ /var/lib/apt/lists/* -WORKDIR /var/tmp +# install clang RUN TEMPDIR=$(mktemp -d) \ && cd $TEMPDIR \ && wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh \ @@ -34,6 +34,13 @@ RUN TEMPDIR=$(mktemp -d) \ && python3 -m pip install --no-cache-dir clang==16.0.1 ctypeslib2==2.3.4 -U \ && rm -rf $TEMPDIR +# install cmake +RUN TEMPDIR=$(mktemp -d) \ + && cd $TEMPDIR \ + && wget https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-linux-x86_64.sh && chmod +x cmake*.sh \ + && ./cmake*.sh --skip-license --prefix=/usr \ + && rm -rf $TEMPDIR + WORKDIR /src CMD cp -r /src /tmp/src \ && cd /tmp/src \