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
7d3f59dfcb
commit
a0d787d7ad
|
@ -3,6 +3,7 @@ LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
libc++1-7 \
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -23,21 +24,23 @@ RUN buildDeps=' \
|
||||||
&& set -x \
|
&& set -x \
|
||||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& mkdir -p /usr/src/osquery/build \
|
&& mkdir -p /usr/src/osquery/build /usr/share/osquery \
|
||||||
&& git clone --branch "${OSQUERY_VERSION}" --depth 1 https://github.com/osquery/osquery.git /usr/src/osquery/src \
|
&& git clone --branch "${OSQUERY_VERSION}" --depth 1 https://github.com/osquery/osquery.git /usr/src/osquery/src \
|
||||||
&& 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++ \
|
&& cmake ../src -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
|
||||||
&& cmake --build . -j # // where # is the number of parallel build jobs \
|
&& cmake --build . -j \
|
||||||
&& ls -la \
|
&& mv osquery/osqueryd /usr/bin \
|
||||||
|
&& mv package/linux/osqueryctl /usr/bin \
|
||||||
&& apt-get purge -y --auto-remove $buildDeps \
|
&& apt-get purge -y --auto-remove $buildDeps \
|
||||||
&& chmod a+x /usr/bin/osquery*
|
&& chmod a+x /usr/bin/osquery* \
|
||||||
|
&& cp -r /usr/src/osquery/src/packs /usr/share/osquery/
|
||||||
|
|
||||||
COPY osquery.example.conf /etc/osquery/osquery.conf
|
COPY osquery.example.conf /etc/osquery/osquery.conf
|
||||||
|
|
||||||
ENV HOME /home/user
|
ENV HOME /home/user
|
||||||
RUN mkdir -p /var/osquery /usr/share/osquery /var/log/osquery \
|
RUN mkdir -p /var/osquery /var/log/osquery \
|
||||||
&& useradd --create-home --home-dir $HOME user \
|
&& useradd --create-home --home-dir $HOME user \
|
||||||
&& chown -R user:user $HOME /etc/osquery /var/osquery /usr/share/osquery /var/log/osquery
|
&& chown -R user:user $HOME /etc/osquery /var/osquery /usr/share/osquery /var/log/osquery
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user