Skip to content
Permalink
Browse files

Fixup sampledata directory locations

  • Loading branch information...
pwnbus committed Sep 6, 2019
1 parent 53bc112 commit 421d465affa14a6e3e9b45a91d3860852fc2c205
@@ -6,7 +6,7 @@ services:
context: ../../
dockerfile: docker/compose/mozdef_sampledata/Dockerfile
restart: always
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'
command: bash -c 'while ! timeout 1 bash -c "echo > /dev/tcp/elasticsearch/9200";do sleep 1;done && /opt/mozdef/envs/mozdef/scripts/demo/populate_sample_events.sh'
links:
- elasticsearch
depends_on:
@@ -17,4 +17,4 @@ services:
networks:
- default
volumes:
- ../../examples:/opt/mozdef/envs/mozdef/examples
- ../../scripts/demo:/opt/mozdef/envs/mozdef/scripts/demo
@@ -2,11 +2,6 @@ FROM mozdef/mozdef_base

LABEL maintainer="mozdef@mozilla.com"

COPY --chown=mozdef:mozdef ./examples /opt/mozdef/envs/mozdef/examples
COPY --chown=mozdef:mozdef scripts/demo /opt/mozdef/envs/mozdef/scripts/demo

COPY --chown=mozdef:mozdef docker/compose/mozdef_sampledata/files/sampleData2MozDef.conf /opt/mozdef/envs/mozdef/examples/demo/sampleData2MozDef.conf
RUN chmod u+rwx /opt/mozdef/envs/mozdef/examples/demo/sampleevents.sh

WORKDIR /opt/mozdef/envs/mozdef/examples/demo

USER root
WORKDIR /opt/mozdef/envs/mozdef/scripts/demo

This file was deleted.

@@ -6,7 +6,7 @@ RUN pip install -r /opt/mozdef/envs/mozdef/tests/requirements_tests.txt
COPY alerts /opt/mozdef/envs/mozdef/alerts
COPY bot /opt/mozdef/envs/mozdef/bot
COPY cron /opt/mozdef/envs/mozdef/cron
COPY examples /opt/mozdef/envs/mozdef/examples
COPY scripts /opt/mozdef/envs/mozdef/scripts
COPY loginput /opt/mozdef/envs/mozdef/loginput
COPY mozdef_util /opt/mozdef/envs/mozdef/mozdef_util
COPY mq /opt/mozdef/envs/mozdef/mq
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Copyright (c) 2016 Mozilla Corporation


source /opt/mozdef/envs/python/bin/activate
/opt/mozdef/envs/mozdef/scripts/demo/populate_sample_events.py

0 comments on commit 421d465

Please sign in to comment.
You can’t perform that action at this time.