From 20677d478e86ecef1cce934f842f322a60738a7a Mon Sep 17 00:00:00 2001 From: Akos Pasztor Date: Sat, 22 Jun 2024 17:00:27 +0200 Subject: [PATCH] Add CMake and Ninja installation --- 10-2020-q4/linux/Dockerfile | 27 +++++++++++++++++++++++++++ 8-2019-q3/linux/Dockerfile | 27 +++++++++++++++++++++++++++ 9-2019-q4/linux/Dockerfile | 27 +++++++++++++++++++++++++++ 9-2020-q2/linux/Dockerfile | 27 +++++++++++++++++++++++++++ 4 files changed, 108 insertions(+) diff --git a/10-2020-q4/linux/Dockerfile b/10-2020-q4/linux/Dockerfile index 6833e13..2e4cea7 100644 --- a/10-2020-q4/linux/Dockerfile +++ b/10-2020-q4/linux/Dockerfile @@ -25,3 +25,30 @@ RUN rm -f $GCC_FILE ENV GCC_PATH=$GCC_DIR/bin ENV PATH=$GCC_PATH:$PATH + +# Install CMake +ENV CMAKE_VERSION=3.29.6 +ENV CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-linux-x86_64.tar.gz +ENV CMAKE_FILE=/tmp/cmake-$CMAKE_VERSION.tar.gz +RUN wget --progress=dot:mega -O $CMAKE_FILE $CMAKE_URL + +ENV CMAKE_DIR=/opt/cmake/$CMAKE_VERSION +RUN mkdir -p $CMAKE_DIR +RUN tar xzf $CMAKE_FILE -C $CMAKE_DIR --strip-components=1 +RUN rm -f $CMAKE_FILE + +ENV CMAKE_PATH=$CMAKE_DIR/bin +ENV PATH=$CMAKE_PATH:$PATH + +# Install Ninja +ENV NINJA_VERSION=1.12.1 +ENV NINJA_URL=https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip +ENV NINJA_FILE=/tmp/ninja-$NINJA_VERSION.zip +RUN wget --progress=dot:mega -O $NINJA_FILE $NINJA_URL + +ENV NINJA_DIR=/opt/ninja/$NINJA_VERSION +RUN mkdir -p $NINJA_DIR +RUN unzip $NINJA_FILE -d $NINJA_DIR +RUN rm -f $NINJA_FILE + +ENV PATH=$NINJA_DIR:$PATH diff --git a/8-2019-q3/linux/Dockerfile b/8-2019-q3/linux/Dockerfile index ea8fdeb..a3dec2b 100644 --- a/8-2019-q3/linux/Dockerfile +++ b/8-2019-q3/linux/Dockerfile @@ -25,3 +25,30 @@ RUN rm -f $GCC_FILE ENV GCC_PATH=$GCC_DIR/bin ENV PATH=$GCC_PATH:$PATH + +# Install CMake +ENV CMAKE_VERSION=3.29.6 +ENV CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-linux-x86_64.tar.gz +ENV CMAKE_FILE=/tmp/cmake-$CMAKE_VERSION.tar.gz +RUN wget --progress=dot:mega -O $CMAKE_FILE $CMAKE_URL + +ENV CMAKE_DIR=/opt/cmake/$CMAKE_VERSION +RUN mkdir -p $CMAKE_DIR +RUN tar xzf $CMAKE_FILE -C $CMAKE_DIR --strip-components=1 +RUN rm -f $CMAKE_FILE + +ENV CMAKE_PATH=$CMAKE_DIR/bin +ENV PATH=$CMAKE_PATH:$PATH + +# Install Ninja +ENV NINJA_VERSION=1.12.1 +ENV NINJA_URL=https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip +ENV NINJA_FILE=/tmp/ninja-$NINJA_VERSION.zip +RUN wget --progress=dot:mega -O $NINJA_FILE $NINJA_URL + +ENV NINJA_DIR=/opt/ninja/$NINJA_VERSION +RUN mkdir -p $NINJA_DIR +RUN unzip $NINJA_FILE -d $NINJA_DIR +RUN rm -f $NINJA_FILE + +ENV PATH=$NINJA_DIR:$PATH diff --git a/9-2019-q4/linux/Dockerfile b/9-2019-q4/linux/Dockerfile index bd8e2d6..4260256 100644 --- a/9-2019-q4/linux/Dockerfile +++ b/9-2019-q4/linux/Dockerfile @@ -25,3 +25,30 @@ RUN rm -f $GCC_FILE ENV GCC_PATH=$GCC_DIR/bin ENV PATH=$GCC_PATH:$PATH + +# Install CMake +ENV CMAKE_VERSION=3.29.6 +ENV CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-linux-x86_64.tar.gz +ENV CMAKE_FILE=/tmp/cmake-$CMAKE_VERSION.tar.gz +RUN wget --progress=dot:mega -O $CMAKE_FILE $CMAKE_URL + +ENV CMAKE_DIR=/opt/cmake/$CMAKE_VERSION +RUN mkdir -p $CMAKE_DIR +RUN tar xzf $CMAKE_FILE -C $CMAKE_DIR --strip-components=1 +RUN rm -f $CMAKE_FILE + +ENV CMAKE_PATH=$CMAKE_DIR/bin +ENV PATH=$CMAKE_PATH:$PATH + +# Install Ninja +ENV NINJA_VERSION=1.12.1 +ENV NINJA_URL=https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip +ENV NINJA_FILE=/tmp/ninja-$NINJA_VERSION.zip +RUN wget --progress=dot:mega -O $NINJA_FILE $NINJA_URL + +ENV NINJA_DIR=/opt/ninja/$NINJA_VERSION +RUN mkdir -p $NINJA_DIR +RUN unzip $NINJA_FILE -d $NINJA_DIR +RUN rm -f $NINJA_FILE + +ENV PATH=$NINJA_DIR:$PATH diff --git a/9-2020-q2/linux/Dockerfile b/9-2020-q2/linux/Dockerfile index 3a1a669..26d3f30 100644 --- a/9-2020-q2/linux/Dockerfile +++ b/9-2020-q2/linux/Dockerfile @@ -25,3 +25,30 @@ RUN rm -f $GCC_FILE ENV GCC_PATH=$GCC_DIR/bin ENV PATH=$GCC_PATH:$PATH + +# Install CMake +ENV CMAKE_VERSION=3.29.6 +ENV CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v3.29.6/cmake-3.29.6-linux-x86_64.tar.gz +ENV CMAKE_FILE=/tmp/cmake-$CMAKE_VERSION.tar.gz +RUN wget --progress=dot:mega -O $CMAKE_FILE $CMAKE_URL + +ENV CMAKE_DIR=/opt/cmake/$CMAKE_VERSION +RUN mkdir -p $CMAKE_DIR +RUN tar xzf $CMAKE_FILE -C $CMAKE_DIR --strip-components=1 +RUN rm -f $CMAKE_FILE + +ENV CMAKE_PATH=$CMAKE_DIR/bin +ENV PATH=$CMAKE_PATH:$PATH + +# Install Ninja +ENV NINJA_VERSION=1.12.1 +ENV NINJA_URL=https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-linux.zip +ENV NINJA_FILE=/tmp/ninja-$NINJA_VERSION.zip +RUN wget --progress=dot:mega -O $NINJA_FILE $NINJA_URL + +ENV NINJA_DIR=/opt/ninja/$NINJA_VERSION +RUN mkdir -p $NINJA_DIR +RUN unzip $NINJA_FILE -d $NINJA_DIR +RUN rm -f $NINJA_FILE + +ENV PATH=$NINJA_DIR:$PATH