Commit 1af67b45be8c841732035e64b666fa2a458fbb15

Authored by Thanasis Naskos
1 parent 0732600948

Updating Suricata Dockerfile to not use the latest tag. Updating docker-compose …

…to check if image exist in datalabauth docker-hub

Showing 2 changed files with 15 additions and 6 deletions

CEPTD/docker/suricata/Dockerfile View file @ 1af67b4
1   -FROM alpine:latest
  1 +FROM alpine:3.12.0
2 2 #
3 3 # Include dist
4 4 ADD dist/ /root/dist/
5 5  
6 6  
... ... @@ -9,15 +9,20 @@
9 9 curl \
10 10 file \
11 11 libcap \
12   - python3 \
13   - python3-dev \
14   - wget && \
  12 + libnet \
  13 + wget \
  14 + python3 \
  15 + python3-dev && \
  16 + if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
  17 + python3 -m ensurepip && \
  18 + rm -r /usr/lib/python*/ensurepip && \
  19 + pip3 install --no-cache --upgrade pip setuptools wheel && \
  20 + if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
15 21 apk -U add --repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
16 22 suricata && \
17   - pip3 install --no-cache-dir --upgrade pip && \
18 23 #
19 24 # Install python module
20   - pip3 install sqlitedict && \
  25 + pip install sqlitedict && \
21 26 #
22 27 # Setup user, groups, configs and scripts
23 28 addgroup -g 2000 suri && \
docker-compose.yml View file @ 1af67b4
... ... @@ -6,6 +6,7 @@
6 6 suricata:
7 7 build:
8 8 context: ./CEPTD/docker/suricata
  9 + image: datalabauth/kea-curex_suricata:v1.0.0
9 10 container_name: curex-suricata
10 11 restart: always
11 12 network_mode: "host"
... ... @@ -49,6 +50,7 @@
49 50 logstash:
50 51 build:
51 52 context: ./CEPTD/docker/logstash
  53 + image: datalabauth/kea-curex_logstash:v1.0.0
52 54 container_name: curex-logstash
53 55 restart: always
54 56 volumes:
... ... @@ -97,6 +99,7 @@
97 99 od:
98 100 build:
99 101 context: ./OD
  102 + image: datalabauth/kea-curex_od:v1.0.0
100 103 container_name: curex-od
101 104 depends_on:
102 105 - timescaledb
... ... @@ -108,6 +111,7 @@
108 111 mltd:
109 112 build:
110 113 context: ./MLTD
  114 + image: datalabauth/kea-curex_mltd:v1.0.0
111 115 container_name: curex-mltd
112 116 depends_on:
113 117 - timescaledb