This section outlines the steps required to set up your local development environment for working with the Wazuh-Docker project (version 4.14.3). A proper setup is crucial for building images, running tests, and contributing effectively.
Before you begin, ensure your system meets the following requirements:
Operating System:
Docker and Docker Compose:
Git:
Sufficient System Resources:
Follow these steps to prepare your development environment:
Clone the Repository:
Clone the wazuh-docker repository from GitHub. It's important to check out the specific branch you intend to work with, in this case, 4.14.3.
git clone [https://github.com/wazuh/wazuh-docker.git](https://github.com/wazuh/wazuh-docker.git)
cd wazuh-docker
git checkout v4.14.3
Verify Docker Installation:
Ensure Docker is running and accessible by your user (you might need to add your user to the docker group or use sudo).
docker --version
docker info
These commands should output the versions of Docker and information about your Docker setup without errors.
Review Project Structure: Familiarize yourself with the directory structure of the cloned repository. Key directories often include:
build-docker-images/wazuh-manager/: Dockerfile and related files for the Wazuh manager.build-docker-images/wazuh-indexer/: Dockerfile and related files for the Wazuh indexer.build-docker-images/wazuh-dashboard/: Dockerfile and related files for the Wazuh dashboard.build-docker-images/wazuh-agent/ : Dockerfile and related files for Wazuh agents.single-node/ : Compose and configuration files for Wazuh deployment with 1 container of each Wazuh component.multi-node/ : Compose and configuration files for Wazuh deployment with 1 container of Wazuh dashboardm 2 containers of Wazuh manager (1 master and 1 worker) and 3 containers of Wazuh indexer.wazuh-agent/ : Compose and configuration files for Wazuh agent deployment.