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 - Create build image process - Wazuh indexer #661

Open
8 tasks
vcerenu opened this issue Jan 15, 2025 · 0 comments
Open
8 tasks

MVP - Docker - Create build image process - Wazuh indexer #661

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

Comments

@vcerenu
Copy link
Member

vcerenu commented Jan 15, 2025

Description

The creation of a Docker image of the Wazuh indexer component is required.
This creation process must contemplate the creation of production, pre-release and development images, taking into account that the created packages can be used in any instance and that images will need to be created in each package build that is carried out.

It must also be verified that the life of the container must be tied to the main process of the container. So, if the process crash or is restarted, the container will fail.

The Docker image must be simplified. It will only allow to configure the basic parameters needed by the main process to start and interact with the other containers/components. e.g.: Wazuh server and indexer IPs. The Docker image will not allow to customize the component features, it will use the default values instead.

Other steps of this change is to be able to build both amd64 and arm64 images, so the Dockerfile must be adapted to use global variables when selecting the corresponding architecture package.
Related info: wazuh/wazuh-docker#1624 (comment)

It is also required to use a Github Actions workflow to build and push images to the corresponding repository. Currently, there is a workflow located at .github/workflows/Procedure_push_docker_images.yml that creates the Docker images and pushes them to Docker Hub. A workflow must be generated for the image's own build and its subsequent push to Docker Hub or ECR, depending on whether it is a productive image or not.

Regarding the image generation process, it is required to generate the image every time packages of the component in question are generated, using this generated package and pushing the image to the development or pre-release repository as appropriate.

The Docker image must allow configuring a health check in the deployment.

Warning

The base image must be Amazon Linux 2023 latest

Tasks

  • Modify installation method to use downloaded packages instead of installing from a repository. The file containing the URLs must be downloaded prior to the image build.
  • Ensure the life of the container matches with the life of the main process.
  • Ensure the Docker image allows minimum configuration parameters for the process to start and connect to the rest of the components/containers.
  • Ensure you can use prod, pre-release and development packages during the build process.
  • Ensure you can create amd64 and arm64 images (multi-arch).
  • Ensure the build workflow can push images to Docker hub and ECR repositories depending on what image is being built (production/pre-release or development)
  • Ensure the Docker image allows configuring a health check in the deployment.
  • Build Docker images for each generated package. The wazuh-server package generation must also build and push a wazuh-server Docker image (to the development (ECR) or the DockerHub repository).
    • The workflow must push the image twice for development images with the following tag nomenclature: WAZUH_VERSION-latest and WAZUH_VERSION-<commit>. e.g.: 5.0.0-latest. The Docker images must be built for each PR to numbered branches or master. The images must be pushed to the ECR Repository.
    • For pre-release images a single image must be pusshed with the tag WAZUH_VERSION-<stage>. e.g.: 5.0.0-alpha1. The image must be pushed to the DockerHub repository.

DRI

Gonzalo Acuña

@vcerenu vcerenu added the level/subtask Subtask issue label Jan 16, 2025
@teddytpc1 teddytpc1 added the type/enhancement Enhancement issue label Jan 22, 2025
@teddytpc1 teddytpc1 changed the title MVP - Change build image process - Wazuh indexer MVP - Docker - Change build image process - Wazuh indexer Jan 29, 2025
@teddytpc1 teddytpc1 transferred this issue from wazuh/wazuh-docker Jan 30, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 30, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Jan 31, 2025
@wazuhci wazuhci moved this from Blocked to Backlog in XDR+SIEM/Release 5.0.0 Feb 5, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Feb 10, 2025
@c-bordon c-bordon changed the title MVP - Docker - Change build image process - Wazuh indexer MVP - Docker - Create build image process - Wazuh indexer Feb 10, 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

2 participants