зеркало из https://github.com/mozilla/MozDef.git
Merge pull request #1094 from mozilla/sampledata_wait_elasticsearch
Configure sampledata container to wait for ES first
This commit is contained in:
Коммит
7e87f73acc
|
@ -6,7 +6,7 @@ services:
|
|||
context: ../../
|
||||
dockerfile: docker/compose/mozdef_sampledata/Dockerfile
|
||||
restart: always
|
||||
command: bash -c '/opt/mozdef/envs/mozdef/examples/demo/sampleevents.sh'
|
||||
command: bash -c 'while ! timeout 1 bash -c "echo > /dev/tcp/elasticsearch/9200";do sleep 1;done && /opt/mozdef/envs/mozdef/examples/demo/sampleevents.sh'
|
||||
links:
|
||||
- elasticsearch
|
||||
depends_on:
|
||||
|
|
Загрузка…
Ссылка в новой задаче