зеркало из https://github.com/mozilla/MozDef.git
Modify docker compose to use new location of mapping
This commit is contained in:
Родитель
4060088ddb
Коммит
8ccefbb61f
|
@ -63,7 +63,7 @@ services:
|
|||
build:
|
||||
context: ../../
|
||||
dockerfile: docker/compose/mozdef_bootstrap/Dockerfile
|
||||
command: bash -c 'sleep 7 && source /opt/mozdef/envs/python/bin/activate && python initial_setup.py http://elasticsearch:9200 defaultMappingTemplate.json'
|
||||
command: bash -c 'sleep 7 && source /opt/mozdef/envs/python/bin/activate && python docker/conf/initial_setup.py http://elasticsearch:9200 config/defaultMappingTemplate.json'
|
||||
depends_on:
|
||||
- base
|
||||
- elasticsearch
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
FROM mozdef_base:latest
|
||||
|
||||
COPY docker/compose/mozdef_bootstrap/files/initial_setup.py /opt/mozdef/envs/mozdef/initial_setup.py
|
||||
COPY config/defaultMappingTemplate.json /opt/mozdef/envs/mozdef/defaultMappingTemplate.json
|
||||
RUN \
|
||||
mkdir /opt/mozdef/envs/mozdef/config && \
|
||||
mkdir -p /opt/mozdef/envs/mozdef/docker/conf
|
||||
|
||||
COPY docker/conf/initial_setup.py /opt/mozdef/envs/mozdef/docker/conf/initial_setup.py
|
||||
COPY config/defaultMappingTemplate.json /opt/mozdef/envs/mozdef/config/defaultMappingTemplate.json
|
||||
|
||||
RUN chown -R mozdef:mozdef /opt/mozdef/envs/mozdef/
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче