Skip to content

Commit

Permalink
bionic docker: fixing cmake version for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Mar 25, 2024
1 parent f8a63ec commit bc6d390
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docker/bionic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
RUN echo "I am building for $TARGETPLATFORM"

# cmake >=3.14 required
RUN apt update && apt install -y wget && apt-get clean && rm -rf /var/lib/apt/lists/ && \
wget -nv https://github.com/Kitware/CMake/releases/download/v3.17.0/cmake-3.17.0-Linux-x86_64.tar.gz && \
tar -xzf cmake-3.17.0-Linux-x86_64.tar.gz && \
rm cmake-3.17.0-Linux-x86_64.tar.gz &&\
ln -s ~/cmake-3.17.0-Linux-x86_64/bin/cmake ~/cmake; fi
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then apt update && apt install -y wget && apt-get clean && rm -rf /var/lib/apt/lists/ && \
wget -nv https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-linux-aarch64.tar.gz && \
tar -xzf cmake-3.20.0-linux-aarch64.tar.gz && \
rm cmake-3.20.0-linux-aarch64.tar.gz &&\
ln -s ~/cmake-3.20.0-linux-aarch64/bin/cmake ~/cmake; fi
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then apt update && apt install -y wget && apt-get clean && rm -rf /var/lib/apt/lists/ && \
wget -nv https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-3.20.0-linux-x86_64.tar.gz && \
tar -xzf cmake-3.20.0-linux-x86_64.tar.gz && \
rm cmake-3.20.0-linux-x86_64.tar.gz &&\
ln -s ~/cmake-3.20.0-linux-x86_64/bin/cmake ~/cmake; fi

#commit Aug 6 2020
RUN apt-get update && apt install wget && apt-get clean && rm -rf /var/lib/apt/lists/
Expand Down

0 comments on commit bc6d390

Please sign in to comment.