Skip to content

Commit

Permalink
Rename ecs util to mapping-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Dec 13, 2024
1 parent 118cdbe commit c4d323c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docker/ecs/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ RUN apt-get update && \
mkdir -p /source/ecs

# Ensure the generate.sh script is in the correct location
ADD docker/ecs/images/generate.sh /ecs/generate.sh
ADD docker/ecs/images/generate.sh /ecs/generator.sh

# Define the directory as a volume to allow for external mounting
VOLUME /source/ecs

# Ensure the generate.sh script is executable
RUN chmod +x /ecs/generate.sh
RUN chmod +x /ecs/generator.sh

# Set the working directory to the ECS repository
WORKDIR /ecs

# Define the entry point for the container to execute the generate.sh script
ENTRYPOINT ["/bin/bash", "/ecs/generate.sh"]
ENTRYPOINT ["/bin/bash", "/ecs/generator.sh"]
File renamed without changes.
6 changes: 3 additions & 3 deletions docker/ecs/ecs.sh → docker/ecs/mapping-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ set -e
# The container is built only if needed, the tool can be executed several times
# for different modules in the same build since the script runs as entrypoint



# ====
# Checks that the script is run from the intended location
# ====
Expand Down Expand Up @@ -40,17 +42,15 @@ function usage() {
}

function main() {
local compose_filename="docker/ecs/mapping-generator.yml"
local compose_command
local compose_filename
local module
local repo_path

navigate_to_project_root

compose_filename="docker/ecs/ecs.yml"
compose_command="docker compose -f $compose_filename"


case $1 in
run)
if [[ "$#" -lt 2 || "$#" -gt 3 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion docker/ecs/ecs.yml → docker/ecs/mapping-generator.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
wazuh-ecs-generator:
ecs-mapping-generator:
image: wazuh-ecs-generator
container_name: wazuh-ecs-generator
build:
Expand Down

0 comments on commit c4d323c

Please sign in to comment.