Skip to content

Commit

Permalink
Implement docker compose to ecs generator tool
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Dec 11, 2024
1 parent 38972b1 commit ef1dd31
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions docker/ecs/ecs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
wazuh-ecs-generator:
image: wazuh-ecs-generator:${VERSION}
container_name: wazuh-ecs-generator_{VERSION}
build:
context: ./../..
dockerfile: ${REPO_PATH}/docker/ecs/images/Dockerfile
volumes:
- source:/source/ecs
#entrypoint: ["/bin/bash", "/home/wazuh-indexer/entrypoint.sh"]
# working_dir: /home/wazuh-indexer
environment:
- ECS_MODULE=alerts

volumes:
source:
driver: ${REPO_PATH}/ecs
4 changes: 3 additions & 1 deletion docker/ecs/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ RUN apt-get update && \
# Change this to a volume
ADD docker/ecs/images/generate.sh /ecs/generate.sh
#ADD docker/ecs/images/entrypoint.sh entrypoint.sh
ADD ecs/ /source/ecs
#ADD ecs/ /source/ecs
# This directory will be attached to a volume
RUN mkdir -p /source/ecs

RUN chmod +x /ecs/generate.sh

Expand Down

0 comments on commit ef1dd31

Please sign in to comment.