Permalink
Browse files

Merge pull request #1094 from mozilla/sampledata_wait_elasticsearch

Configure sampledata container to wait for ES first
  • Loading branch information...
pwnbus committed Feb 6, 2019
2 parents 4ff7b25 + d67c8f3 commit 7e87f73acc021d369986a3bdd3f8893206b87e59
Showing with 1 addition and 1 deletion.
  1. +1 −1 docker/compose/dev-sampledata.yml
@@ -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:

0 comments on commit 7e87f73

Please sign in to comment.