Skip to content

Commit

Permalink
bump up cmake to 3.19 on fedora
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Gershman <[email protected]>
  • Loading branch information
romange committed May 28, 2024
1 parent 3d252e1 commit c39fc92
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fedora30-dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# syntax=docker/dockerfile:1
FROM fedora:30

COPY ./install_boost.sh /tmp/
COPY ./install_boost.sh /tmp/
COPY ./get_cmake.sh /tmp/

RUN dnf install -y automake gcc-c++ git cmake libtool make ninja-build \
RUN dnf install -y automake gcc-c++ git libtool make ninja-build \
openssl-devel libunwind-devel autoconf-archive patch wget bzip2 \
openssl-static zlib-devel gdb ccache flatbuffers-devel
openssl-static zlib-devel gdb ccache

RUN dnf install -y bison libzstd-static --releasever=32 \
&& dnf clean all && rm -rf /var/cache/yum
RUN dnf install -y bison libzstd-static --releasever=32

RUN /tmp/install_boost.sh
RUN /tmp/install_boost.sh && /tmp/get_cmake.sh
11 changes: 11 additions & 0 deletions get_cmake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -e

cd /tmp
CMAKE_VER=3.18.3
BASE_URL=https://github.com/Kitware/CMake/releases/download
wget -q ${BASE_URL}/v${CMAKE_VER}/cmake-${CMAKE_VER}.tar.gz
tar xfz cmake-*.tar.gz && rm -f *.tar.gz && cd cmake-${CMAKE_VER}
./bootstrap && gmake -j4 cmake cpack ctest
gmake install
cd - && rm -rf cmake-*

0 comments on commit c39fc92

Please sign in to comment.