diff --git a/fedora30-dev.Dockerfile b/fedora30-dev.Dockerfile index 90a3047..534a688 100644 --- a/fedora30-dev.Dockerfile +++ b/fedora30-dev.Dockerfile @@ -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 \ No newline at end of file +RUN /tmp/install_boost.sh && /tmp/get_cmake.sh \ No newline at end of file diff --git a/get_cmake.sh b/get_cmake.sh new file mode 100755 index 0000000..d9b392b --- /dev/null +++ b/get_cmake.sh @@ -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-* \ No newline at end of file