mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
update osquery
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
parent
aaf7e424aa
commit
8c34baddef
|
@ -9,6 +9,8 @@ RUN apt-get update && apt-get install -y \
|
|||
curl \
|
||||
gnupg2 \
|
||||
libc++1 \
|
||||
tar \
|
||||
xz-utils \
|
||||
--no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -sSL https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - \
|
||||
|
@ -39,8 +41,9 @@ RUN buildDeps=' \
|
|||
&& cd /usr/src/osquery \
|
||||
&& ls -la src/ \
|
||||
&& cd build \
|
||||
&& cmake ../src -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
|
||||
&& cmake --build . -j \
|
||||
&& 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 -DOSQUERY_TOOLCHAIN_SYSROOT=/usr/local/osquery-toolchain ../src \
|
||||
&& cmake --build . \
|
||||
&& mv osquery/osqueryd /usr/bin \
|
||||
&& mv package/linux/osqueryctl /usr/bin \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
|
|
Loading…
Reference in New Issue
Block a user