onnxruntime/dockerfiles/scripts/install_cmake.sh
Changming Sun c6b0d185b4
Update cmake to 3.27 and upgrade Linux CUDA docker files from CentOS7 to UBI8 (#16856)
### Description
1. Update docker files and their build instructions.
ARM64 and x86_64 can use the same docker file.

2. Upgrade Linux CUDA pipeline's base docker image from CentOS7 to UBI8
AB#18990
2023-09-05 18:12:10 -07:00

11 lines
354 B
Bash
Executable file

#!/bin/bash
set -e -x
mkdir -p /tmp/src
cd /tmp/src
echo "Installing cmake"
CPU_ARCH=`uname -m`
CMAKE_VERSION='3.27.3'
curl https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-linux-$CPU_ARCH.tar.gz -sSL --retry 5 -o /tmp/src/cmake.tar.gz
tar -zxf /tmp/src/cmake.tar.gz --strip=1 -C /usr
rm -f /tmp/src/cmake.tar.gz