Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVP - Docker - Migrate Wazuh indexer build files #658

Open
2 tasks
Tracked by #1675
vcerenu opened this issue Jan 15, 2025 · 0 comments
Open
2 tasks
Tracked by #1675

MVP - Docker - Migrate Wazuh indexer build files #658

vcerenu opened this issue Jan 15, 2025 · 0 comments
Assignees
Labels
level/subtask Subtask issue type/enhancement Enhancement issue

Comments

@vcerenu
Copy link
Member

vcerenu commented Jan 15, 2025

Description

The current process of building Docker images in Wazuh is done with a script in the build-docker-images/build-images.sh path, which uses the build-docker-images/build-images.yml file to build the images of the 3 components, and we use the .env file hosted in the root of the repository to hold environment variables that are shared with all build processes in general.
For the build process of each of the images, we have set up our own directory to store the Dockerfile and the other script files and configurations used in the build of the image, which in the case of Wazuh indexer is the build-docker-images/wazuh-indexer directory.

build-docker-images/
├── build-images.sh
├── build-images.yml
├── README.md
└── wazuh-indexer
     ├── config
     │   ├── action_groups.yml
     │   ├── check_repository.sh
     │   ├── config.sh
     │   ├── config.yml
     │   ├── entrypoint.sh
     │   ├── internal_users.yml
     │   ├── opensearch.yml
     │   ├── roles_mapping.yml
     │   ├── roles.yml
     │   └── securityadmin.sh
     └── Dockerfile

In the migration of the build process, you need to migrate the files from the corresponding directory to the new repository and assign the environment variables that are assigned in the build-docker-images/build-images.sh script in a general way within the Dockerfile, so that the process is generated without errors.

Tasks

  • Migrate the files from the build-docker-images/wazuh-indexer directory to the wazuh-indexer repository
  • Remove the dependency on the .env file contained in the wazuh-docker repository and migrate the value of those variables to the Dockerfile.

Important

The build will not be tested at this stage because the procedure is not adapted to work with 5.0.0.

DRI

@vcerenu vcerenu changed the title Migrate Wazuh indexer build files MVP - Migrate Wazuh indexer build files Jan 15, 2025
@vcerenu vcerenu added the level/subtask Subtask issue label Jan 16, 2025
@teddytpc1 teddytpc1 added the type/enhancement Enhancement issue label Jan 22, 2025
@Dwordcito Dwordcito transferred this issue from wazuh/wazuh-docker Jan 29, 2025
@wazuhci wazuhci moved this from Triage to Backlog in XDR+SIEM/Release 5.0.0 Jan 29, 2025
@teddytpc1 teddytpc1 changed the title MVP - Migrate Wazuh indexer build files MVP - Docker - Migrate Wazuh indexer build files Jan 29, 2025
@wazuhci wazuhci moved this from Backlog to In progress in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this from In progress to Backlog in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/subtask Subtask issue type/enhancement Enhancement issue
Projects
Status: Blocked
Development

No branches or pull requests

3 participants