diff --git a/docker/Dockerfile.ci_gpu b/docker/Dockerfile.ci_gpu index ac76af6b0a1e..cd48e3802d7a 100644 --- a/docker/Dockerfile.ci_gpu +++ b/docker/Dockerfile.ci_gpu @@ -40,6 +40,9 @@ RUN bash /install/ubuntu_install_python_package.sh COPY install/ubuntu_install_sphinx.sh /install/ubuntu_install_sphinx.sh RUN bash /install/ubuntu_install_sphinx.sh +COPY install/ubuntu_install_cmake.sh /install/ubuntu_install_cmake.sh +RUN bash /install/ubuntu_install_cmake.sh + # Enable doxygen for c++ doc build RUN apt-get update && apt-get install -y doxygen libprotobuf-dev protobuf-compiler diff --git a/docker/install/install_ubuntu_cmake.sh b/docker/install/install_ubuntu_cmake.sh new file mode 100644 index 000000000000..8403bb1c8d76 --- /dev/null +++ b/docker/install/install_ubuntu_cmake.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +sudo apt install build-essential libssl-dev -y +wget https://github.com/Kitware/CMake/releases/download/v3.16.5/cmake-3.16.5.tar.gz +tar -zxvf cmake-3.16.5.tar.gz +cd cmake-3.16.5 +./bootstrap +make +sudo make install