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 \
|
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 \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user