mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
more updates to versions
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
parent
37ee88a957
commit
2ae5a5eb18
|
@ -4,8 +4,9 @@ RUN apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
bash \
|
bash \
|
||||||
gfortran \
|
gfortran \
|
||||||
|
lapack \
|
||||||
openjdk8-jre-base \
|
openjdk8-jre-base \
|
||||||
lapack
|
py3-numpy
|
||||||
|
|
||||||
# Install the requirements
|
# Install the requirements
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
|
|
|
@ -6,23 +6,39 @@ RUN apt-get update && apt-get install -y \
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV OSQUERY_VERSION 3.3.2
|
ENV OSQUERY_VERSION 4.0.0
|
||||||
|
|
||||||
RUN buildDeps=' \
|
RUN buildDeps=' \
|
||||||
curl \
|
clang \
|
||||||
|
cmake \
|
||||||
|
git \
|
||||||
|
libc++-dev \
|
||||||
|
libc++abi-dev \
|
||||||
|
liblzma-dev \
|
||||||
|
llvm \
|
||||||
|
make \
|
||||||
|
python \
|
||||||
|
python3 \
|
||||||
' \
|
' \
|
||||||
&& 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 \
|
&& mkdir -p /usr/src/osquery/build \
|
||||||
&& curl -sSL "https://pkg.osquery.io/linux/osquery-${OSQUERY_VERSION}_1.linux_x86_64.tar.gz" | tar -vxzC / --strip-components 1 \
|
&& git clone --branch "${OSQUERY_VERSION}" --depth 1 https://github.com/osquery/osquery.git /usr/src/osquery/src \
|
||||||
|
&& cd /usr/src/osquery \
|
||||||
|
&& ls -la src/ \
|
||||||
|
&& cd build \
|
||||||
|
&& cmake ../src -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
|
||||||
|
&& cmake --build . -j # // where # is the number of parallel build jobs \
|
||||||
|
&& ls -la \
|
||||||
&& 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*
|
||||||
|
|
||||||
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 useradd --create-home --home-dir $HOME user \
|
RUN mkdir -p /var/osquery /usr/share/osquery /var/log/osquery \
|
||||||
|
&& 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
|
||||||
|
|
||||||
WORKDIR $HOME
|
WORKDIR $HOME
|
||||||
|
|
Loading…
Reference in New Issue
Block a user