Skip to content

Commit

Permalink
Add CMake and Ninja installation
Browse files Browse the repository at this point in the history
  • Loading branch information
akospasztor committed Jun 22, 2024
1 parent 8337aae commit 20677d4
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 0 deletions.
27 changes: 27 additions & 0 deletions 10-2020-q4/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
27 changes: 27 additions & 0 deletions 8-2019-q3/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
27 changes: 27 additions & 0 deletions 9-2019-q4/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
27 changes: 27 additions & 0 deletions 9-2020-q2/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 20677d4

Please sign in to comment.