added Malcolm

This commit is contained in:
2021-08-06 10:35:01 +02:00
parent f043730066
commit 70f1922e80
751 changed files with 195277 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
FROM debian:buster-slim AS build
ENV DEBIAN_FRONTEND noninteractive
ENV GITHUB_URL "https://github.com/arkime/arkime/"
ENV GITHUB_BRANCH "master"
ENV ARKIMEDIR "/data/moloch"
ENV ARKIMEUSER "arkime"
USER root
RUN apt-get -q update && \
apt-get install -q -y --no-install-recommends \
binutils \
bison \
cmake \
curl \
file \
flex \
g++ \
gcc \
gettext \
git \
groff \
groff-base \
libcap-dev \
libjson-perl \
libkrb5-dev \
libmaxminddb-dev \
libpcap0.8-dev \
libssl-dev \
libtool \
libwww-perl \
libyaml-dev \
make \
patch \
python \
python-dev \
rename \
sudo \
swig \
vim-tiny \
wget \
zlib1g-dev
RUN mkdir /data && \
groupadd --gid 1000 $ARKIMEUSER && \
useradd -M --uid 1000 --gid 1000 --home $ARKIMEDIR --no-create-home $ARKIMEUSER && \
chown -R $ARKIMEUSER:$ARKIMEUSER /data && \
usermod -aG sudo $ARKIMEUSER && \
sed -i /etc/sudoers -re 's/^%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' && \
sed -i /etc/sudoers -re 's/^root.*/root ALL=(ALL:ALL) NOPASSWD: ALL/g'
USER $ARKIMEUSER
RUN git clone --recursive --depth=1 --single-branch -b "$GITHUB_BRANCH" "$GITHUB_URL" "$ARKIMEDIR" && \
cd "$ARKIMEDIR" && \
bash -c 'for i in /data/patches/*; do patch -p 1 -r - --no-backup-if-mismatch < $i || true; done' && \
export PATH="$ARKIMEDIR/bin:$ARKIMEDIR/node-v10.21.0-linux-x64/bin:${PATH}" && \
sudo ln -sfr $ARKIMEDIR/bin/npm /usr/local/bin/npm && \
sudo ln -sfr $ARKIMEDIR/bin/node /usr/local/bin/node && \
sudo ln -sfr $ARKIMEDIR/bin/npx /usr/local/bin/npx && \
./easybutton-build.sh && \
(make check || true) && \
sudo npm -g install jison
ENV PATH="/data:$ARKIMEDIR/bin:$ARKIMEDIR/node-v10.21.0-linux-x64/bin:${PATH}"
EXPOSE 8000 8005 8081
WORKDIR $ARKIMEDIR/tests
CMD bash

View File

@@ -0,0 +1,47 @@
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-od:7.10.2
restart: "no"
environment:
logger.level : 'INFO'
bootstrap.memory_lock : 'true'
ES_JAVA_OPTS : '-Xms4g -Xmx4g -Xss256k -Djava.security.egd=file:/dev/./urandom'
discovery.type : 'single-node'
# cluster.initial_master_nodes : 'elasticsearch'
cluster.routing.allocation.disk.threshold_enabled : 'false'
cluster.routing.allocation.node_initial_primaries_recoveries : 8
expose:
- 9200
ulimits:
memlock:
soft: -1
hard: -1
cap_add:
- IPC_LOCK
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 30s
timeout: 15s
retries: 3
start_period: 30s
network_mode: host
arkime:
build:
context: .
dockerfile: Dockerfiles/arkime.Dockerfile
image: arkimetest:latest
restart: "no"
ulimits:
memlock:
soft: -1
hard: -1
depends_on:
- elasticsearch
expose:
- 8000
- 8005
- 8081
network_mode: host
command: tail -F /dev/null