update osquery

Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
Jess Frazelle 2019-09-16 15:07:14 -07:00
parent aaf7e424aa
commit 8c34baddef
No known key found for this signature in database
GPG Key ID: C0B444E6A3EFD4C1

View File

@ -9,6 +9,8 @@ RUN apt-get update && apt-get install -y \
curl \ curl \
gnupg2 \ gnupg2 \
libc++1 \ libc++1 \
tar \
xz-utils \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& curl -sSL https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - \ && curl -sSL https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - \
@ -39,8 +41,9 @@ RUN buildDeps=' \
&& cd /usr/src/osquery \ && cd /usr/src/osquery \
&& ls -la src/ \ && ls -la src/ \
&& cd build \ && cd build \
&& cmake ../src -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ && curl -sSL https://github.com/osquery/osquery-toolchain/releases/download/1.0.0/osquery-toolchain-1.0.0.tar.xz | tar -xJ -C /usr/local \
&& cmake --build . -j \ && cmake -DOSQUERY_TOOLCHAIN_SYSROOT=/usr/local/osquery-toolchain ../src \
&& cmake --build . \
&& mv osquery/osqueryd /usr/bin \ && mv osquery/osqueryd /usr/bin \
&& mv package/linux/osqueryctl /usr/bin \ && mv package/linux/osqueryctl /usr/bin \
&& apt-get purge -y --auto-remove $buildDeps \ && apt-get purge -y --auto-remove $buildDeps \