diff --git a/projects/osquery/Dockerfile b/projects/osquery/Dockerfile index dc8a7156d..f01fa08c8 100755 --- a/projects/osquery/Dockerfile +++ b/projects/osquery/Dockerfile @@ -18,6 +18,12 @@ FROM gcr.io/oss-fuzz-base/base-builder RUN apt-get update RUN apt-get install -y --no-install-recommends python python3 bison flex make wget xz-utils libunwind-dev lsb-release build-essential libssl-dev +# osquery now needs at least version 3.21.4. +ENV cmakeVer 3.21.4 +RUN wget https://github.com/Kitware/CMake/releases/download/v${cmakeVer}/cmake-${cmakeVer}-Linux-x86_64.tar.gz \ + && tar xvf cmake-${cmakeVer}-Linux-x86_64.tar.gz -C /usr/local --strip 1 \ + && rm cmake-${cmakeVer}-Linux-x86_64.tar.gz + RUN git clone --depth 1 https://github.com/osquery/osquery osquery WORKDIR osquery