File tree Expand file tree Collapse file tree 5 files changed +83
-0
lines changed Expand file tree Collapse file tree 5 files changed +83
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM python:3.7.8-slim-buster
2
+
3
+ RUN set -ex \
4
+ \
5
+ && savedAptMark="$(apt-mark showmanual)" \
6
+ && apt-get update \
7
+ && apt-get install -y --no-install-recommends git \
8
+ dpkg-dev \
9
+ gcc \
10
+ libssl-dev \
11
+ make
12
+
13
+ # # LogonTracer install
14
+ WORKDIR /usr/local/src
15
+
16
+ RUN git clone https://github.com/JPCERTCC/LogonTracer.git \
17
+ && chmod 777 LogonTracer \
18
+ && chmod 777 LogonTracer/static \
19
+ && cd LogonTracer \
20
+ && pip install cython \
21
+ && pip install numpy \
22
+ && pip install scipy==1.2.1 \
23
+ && pip install statsmodels==0.10.2 \
24
+ && pip install -r requirements.txt \
25
+ && sed -i 's/\" -s \" + NEO4J_SERVER/\" -s neo4j\" /' logontracer.py
26
+
27
+ # # Create setup file
28
+ WORKDIR /usr/local/src
29
+
30
+ RUN echo "#!/bin/bash" > run.sh \
31
+ && echo "cd /usr/local/src/LogonTracer" >> run.sh \
32
+ && echo "python logontracer.py -r -o 8080 -u neo4j -p password -s \$ {LTHOSTNAME}" >> run.sh \
33
+ && chmod 755 run.sh
34
+
35
+ EXPOSE 8080
36
+
37
+ CMD ["/usr/local/src/run.sh" ]
Original file line number Diff line number Diff line change
1
+ version : " 3"
2
+ services :
3
+ neo4j :
4
+ container_name : neo4j
5
+ image : neo4j:4.1.1
6
+ # Using volumes slows down the container.
7
+ # volumes:
8
+ # - ./neo4j/data:/data
9
+ # - ./neo4j/logs:/logs
10
+ # - ./neo4j/conf:/conf
11
+ # Set when sync container and local time
12
+ # - /etc/localtime:/etc/localtime:ro
13
+ ports :
14
+ - " 7474:7474"
15
+ - " 7687:7687"
16
+ environment :
17
+ - NEO4J_dbms_default__database=neo4j
18
+ - NEO4J_dbms_connector_bolt_listen__address=0.0.0.0:7687
19
+ - NEO4J_dbms_connector_http_listen__address=0.0.0.0:7474
20
+ # Performance tuning for JVM neo4j
21
+ # See more details: https://neo4j.com/developer/guide-performance-tuning/
22
+ - NEO4J_dbms_memory_heap_max__size=4G
23
+ - NEO4J_dbms_memory_heap_initial__size=2G
24
+ - NEO4j_dbms_memory_pagecache_size=20G
25
+ # set default neo4j password
26
+ - NEO4J_AUTH=neo4j/password
27
+ networks :
28
+ - neo4j-network
29
+
30
+ logontracer :
31
+ container_name : logontracer
32
+ build : ./LogonTracer/build
33
+ image : logontracer:latest
34
+ # volumes:
35
+ # Set when sync container and local time
36
+ # - /etc/localtime:/etc/localtime:ro
37
+ ports :
38
+ - " 8080:8080"
39
+ environment :
40
+ - LTHOSTNAME=localhost
41
+ networks :
42
+ - neo4j-network
43
+
44
+ networks :
45
+ neo4j-network :
46
+ external : true
You can’t perform that action at this time.
0 commit comments