mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-11-04 05:53:19 +00:00 
			
		
		
		
	Compare commits
	
		
			36 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					8814200fb2 | ||
| 
						 | 
					69d61278cf | ||
| 
						 | 
					ca8cf4f717 | ||
| 
						 | 
					2c92c87b02 | ||
| 
						 | 
					402c5d6fea | ||
| 
						 | 
					81738baf88 | ||
| 
						 | 
					4210c23a4c | ||
| 
						 | 
					ddf1d781eb | ||
| 
						 | 
					3d58ff0049 | ||
| 
						 | 
					d44b87800a | ||
| 
						 | 
					375d94d22f | ||
| 
						 | 
					eb6eae692c | ||
| 
						 | 
					16681104b4 | ||
| 
						 | 
					794e9a27f4 | ||
| 
						 | 
					139f7a52f6 | ||
| 
						 | 
					12d45d83ad | ||
| 
						 | 
					f7f90941ed | ||
| 
						 | 
					27962e38f1 | ||
| 
						 | 
					f1140fc088 | ||
| 
						 | 
					0ecf533cdc | ||
| 
						 | 
					cda712949a | ||
| 
						 | 
					4a95d18b9a | ||
| 
						 | 
					bfae09af52 | ||
| 
						 | 
					1c0b12deaa | ||
| 
						 | 
					c4d6a254cc | ||
| 
						 | 
					d45e2d984e | ||
| 
						 | 
					781e6a4082 | ||
| 
						 | 
					aa88dad36a | ||
| 
						 | 
					a424c683ae | ||
| 
						 | 
					1e29e8fcfc | ||
| 
						 | 
					25be906860 | ||
| 
						 | 
					a98e57bb6c | ||
| 
						 | 
					b3441a6b07 | ||
| 
						 | 
					a3e2a2d88b | ||
| 
						 | 
					a6c22d9618 | ||
| 
						 | 
					d449ae7f76 | 
							
								
								
									
										4
									
								
								.env
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								.env
									
									
									
									
									
								
							@@ -1,3 +1,3 @@
 | 
			
		||||
WAZUH_VERSION=4.7.0
 | 
			
		||||
WAZUH_IMAGE_VERSION=4.7.0
 | 
			
		||||
WAZUH_VERSION=4.7.2
 | 
			
		||||
WAZUH_IMAGE_VERSION=4.7.2
 | 
			
		||||
WAZUH_TAG_REVISION=1
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/.goss.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/.goss.yaml
									
									
									
									
										vendored
									
									
								
							@@ -56,7 +56,7 @@ package:
 | 
			
		||||
  wazuh-manager:
 | 
			
		||||
    installed: true
 | 
			
		||||
    versions:
 | 
			
		||||
    - 4.7.0-1
 | 
			
		||||
    - 4.7.2-1
 | 
			
		||||
port:
 | 
			
		||||
  tcp:1514:
 | 
			
		||||
    listening: true
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								CHANGELOG.md
									
									
									
									
									
								
							@@ -1,6 +1,16 @@
 | 
			
		||||
# Change Log
 | 
			
		||||
All notable changes to this project will be documented in this file.
 | 
			
		||||
 | 
			
		||||
## Wazuh Docker v4.7.2
 | 
			
		||||
### Added
 | 
			
		||||
 | 
			
		||||
- Update Wazuh to version [4.7.2](https://github.com/wazuh/wazuh/blob/v4.7.2/CHANGELOG.md#v472)
 | 
			
		||||
 | 
			
		||||
## Wazuh Docker v4.7.1
 | 
			
		||||
### Added
 | 
			
		||||
 | 
			
		||||
- Update Wazuh to version [4.7.1](https://github.com/wazuh/wazuh/blob/v4.7.1/CHANGELOG.md#v471)
 | 
			
		||||
 | 
			
		||||
## Wazuh Docker v4.7.0
 | 
			
		||||
### Added
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -195,6 +195,8 @@ WAZUH_MONITORING_REPLICAS=0         ##
 | 
			
		||||
 | 
			
		||||
| Wazuh version | ODFE    | XPACK  |
 | 
			
		||||
|---------------|---------|--------|
 | 
			
		||||
| v4.7.2        |         |        |
 | 
			
		||||
| v4.7.1        |         |        |
 | 
			
		||||
| v4.7.0        |         |        |
 | 
			
		||||
| v4.6.0        |         |        |
 | 
			
		||||
| v4.5.4        |         |        |
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								VERSION
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								VERSION
									
									
									
									
									
								
							@@ -1,2 +1,2 @@
 | 
			
		||||
WAZUH-DOCKER_VERSION="4.7.0"
 | 
			
		||||
REVISION="40704"
 | 
			
		||||
WAZUH-DOCKER_VERSION="4.7.2"
 | 
			
		||||
REVISION="40710"
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ Usage: build-docker-images/build-images.sh [OPTIONS]
 | 
			
		||||
    -d, --dev <ref>              [Optional] Set the development stage you want to build, example rc1 or beta1, not used by default.
 | 
			
		||||
    -f, --filebeat-module <ref>  [Optional] Set Filebeat module version. By default 0.3.
 | 
			
		||||
    -r, --revision <rev>         [Optional] Package revision. By default 1
 | 
			
		||||
    -v, --version <ver>          [Optional] Set the Wazuh version should be builded. By default, 4.7.0.
 | 
			
		||||
    -v, --version <ver>          [Optional] Set the Wazuh version should be builded. By default, 4.7.2.
 | 
			
		||||
    -h, --help                   Show this help.
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
WAZUH_IMAGE_VERSION=4.7.0
 | 
			
		||||
WAZUH_IMAGE_VERSION=4.7.2
 | 
			
		||||
WAZUH_VERSION=$(echo $WAZUH_IMAGE_VERSION | sed -e 's/\.//g')
 | 
			
		||||
WAZUH_TAG_REVISION=1
 | 
			
		||||
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2- | sed -e 's/\.//g')
 | 
			
		||||
@@ -12,7 +12,7 @@ IMAGE_VERSION=${WAZUH_IMAGE_VERSION}
 | 
			
		||||
# License (version 2) as published by the FSF - Free Software
 | 
			
		||||
# Foundation.
 | 
			
		||||
 | 
			
		||||
WAZUH_IMAGE_VERSION="4.7.0"
 | 
			
		||||
WAZUH_IMAGE_VERSION="4.7.2"
 | 
			
		||||
WAZUH_TAG_REVISION="1"
 | 
			
		||||
WAZUH_DEV_STAGE=""
 | 
			
		||||
FILEBEAT_MODULE_VERSION="0.3"
 | 
			
		||||
 
 | 
			
		||||
@@ -13,16 +13,15 @@ ARG WAZUH_FILEBEAT_MODULE
 | 
			
		||||
RUN apt-get update && apt install curl apt-transport-https lsb-release gnupg -y
 | 
			
		||||
 | 
			
		||||
COPY config/check_repository.sh /
 | 
			
		||||
 | 
			
		||||
RUN chmod 775 /check_repository.sh
 | 
			
		||||
RUN source /check_repository.sh
 | 
			
		||||
 | 
			
		||||
RUN apt-get update && \
 | 
			
		||||
    apt-get install wazuh-manager=${WAZUH_VERSION}-${WAZUH_TAG_REVISION}
 | 
			
		||||
 | 
			
		||||
RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-amd64.deb &&\
 | 
			
		||||
    dpkg -i ${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-amd64.deb && rm -f ${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-amd64.deb && \
 | 
			
		||||
    curl -s https://packages.wazuh.com/4.x/filebeat/${WAZUH_FILEBEAT_MODULE} | tar -xvz -C /usr/share/filebeat/module
 | 
			
		||||
COPY config/filebeat_module.sh /
 | 
			
		||||
RUN chmod 775 /filebeat_module.sh
 | 
			
		||||
RUN source /filebeat_module.sh
 | 
			
		||||
 | 
			
		||||
ARG S6_VERSION="v2.2.0.3"
 | 
			
		||||
RUN curl --fail --silent -L https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz \
 | 
			
		||||
@@ -49,6 +48,18 @@ RUN chmod 755 /permanent_data.sh && \
 | 
			
		||||
    sync && /permanent_data.sh && \
 | 
			
		||||
    sync && rm /permanent_data.sh
 | 
			
		||||
 | 
			
		||||
#Make mount directories for keep permissions
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p /var/ossec/var/multigroups && \
 | 
			
		||||
    chown root:wazuh /var/ossec/var/multigroups && \
 | 
			
		||||
    chmod 770 /var/ossec/var/multigroups && \
 | 
			
		||||
    mkdir -p /var/ossec/agentless && \
 | 
			
		||||
    chown root:wazuh /var/ossec/agentless && \
 | 
			
		||||
    chmod 770 /var/ossec/agentless && \
 | 
			
		||||
    mkdir -p /var/ossec/active-response/bin && \
 | 
			
		||||
    chown root:wazuh /var/ossec/active-response/bin && \
 | 
			
		||||
    chmod 770 /var/ossec/active-response/bin
 | 
			
		||||
 | 
			
		||||
# Services ports
 | 
			
		||||
EXPOSE 55000/tcp 1514/tcp 1515/tcp 514/udp 1516/tcp
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										25
									
								
								build-docker-images/wazuh-manager/config/filebeat_module.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								build-docker-images/wazuh-manager/config/filebeat_module.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
REPOSITORY="packages.wazuh.com/4.x"
 | 
			
		||||
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2-)
 | 
			
		||||
MAJOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f1)
 | 
			
		||||
MID_BUILD=$(echo $WAZUH_VERSION | cut -d. -f2)
 | 
			
		||||
MINOR_BUILD=$(echo $WAZUH_VERSION | cut -d. -f3)
 | 
			
		||||
MAJOR_CURRENT=$(echo $WAZUH_CURRENT_VERSION | cut -d. -f1)
 | 
			
		||||
MID_CURRENT=$(echo $WAZUH_CURRENT_VERSION | cut -d. -f2)
 | 
			
		||||
MINOR_CURRENT=$(echo $WAZUH_CURRENT_VERSION | cut -d. -f3)
 | 
			
		||||
 | 
			
		||||
## check version to use the correct repository
 | 
			
		||||
if [ "$MAJOR_BUILD" -gt "$MAJOR_CURRENT" ]; then
 | 
			
		||||
  REPOSITORY="packages-dev.wazuh.com/pre-release"
 | 
			
		||||
elif [ "$MAJOR_BUILD" -eq "$MAJOR_CURRENT" ]; then
 | 
			
		||||
  if [ "$MID_BUILD" -gt "$MID_CURRENT" ]; then
 | 
			
		||||
    REPOSITORY="packages-dev.wazuh.com/pre-release"
 | 
			
		||||
  elif [ "$MID_BUILD" -eq "$MID_CURRENT" ]; then
 | 
			
		||||
    if [ "$MINOR_BUILD" -gt "$MINOR_CURRENT" ]; then
 | 
			
		||||
      REPOSITORY="packages-dev.wazuh.com/pre-release"
 | 
			
		||||
    fi
 | 
			
		||||
  fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-amd64.deb &&\
 | 
			
		||||
dpkg -i ${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-amd64.deb && rm -f ${FILEBEAT_CHANNEL}-${FILEBEAT_VERSION}-amd64.deb && \
 | 
			
		||||
curl -s https://${REPOSITORY}/filebeat/${WAZUH_FILEBEAT_MODULE} | tar -xvz -C /usr/share/filebeat/module
 | 
			
		||||
@@ -3,7 +3,7 @@ version: '3.7'
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  wazuh.master:
 | 
			
		||||
    image: wazuh/wazuh-manager:4.7.0
 | 
			
		||||
    image: wazuh/wazuh-manager:4.7.2
 | 
			
		||||
    hostname: wazuh.master
 | 
			
		||||
    restart: always
 | 
			
		||||
    ulimits:
 | 
			
		||||
@@ -45,7 +45,7 @@ services:
 | 
			
		||||
      - ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
 | 
			
		||||
 | 
			
		||||
  wazuh.worker:
 | 
			
		||||
    image: wazuh/wazuh-manager:4.7.0
 | 
			
		||||
    image: wazuh/wazuh-manager:4.7.2
 | 
			
		||||
    hostname: wazuh.worker
 | 
			
		||||
    restart: always
 | 
			
		||||
    ulimits:
 | 
			
		||||
@@ -81,7 +81,7 @@ services:
 | 
			
		||||
      - ./config/wazuh_cluster/wazuh_worker.conf:/wazuh-config-mount/etc/ossec.conf
 | 
			
		||||
 | 
			
		||||
  wazuh1.indexer:
 | 
			
		||||
    image: wazuh/wazuh-indexer:4.7.0
 | 
			
		||||
    image: wazuh/wazuh-indexer:4.7.2
 | 
			
		||||
    hostname: wazuh1.indexer
 | 
			
		||||
    restart: always
 | 
			
		||||
    ports:
 | 
			
		||||
@@ -107,7 +107,7 @@ services:
 | 
			
		||||
      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml
 | 
			
		||||
 | 
			
		||||
  wazuh2.indexer:
 | 
			
		||||
    image: wazuh/wazuh-indexer:4.7.0
 | 
			
		||||
    image: wazuh/wazuh-indexer:4.7.2
 | 
			
		||||
    hostname: wazuh2.indexer
 | 
			
		||||
    restart: always
 | 
			
		||||
    environment:
 | 
			
		||||
@@ -129,7 +129,7 @@ services:
 | 
			
		||||
      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml
 | 
			
		||||
 | 
			
		||||
  wazuh3.indexer:
 | 
			
		||||
    image: wazuh/wazuh-indexer:4.7.0
 | 
			
		||||
    image: wazuh/wazuh-indexer:4.7.2
 | 
			
		||||
    hostname: wazuh3.indexer
 | 
			
		||||
    restart: always
 | 
			
		||||
    environment:
 | 
			
		||||
@@ -151,7 +151,7 @@ services:
 | 
			
		||||
      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml
 | 
			
		||||
 | 
			
		||||
  wazuh.dashboard:
 | 
			
		||||
    image: wazuh/wazuh-dashboard:4.7.0
 | 
			
		||||
    image: wazuh/wazuh-dashboard:4.7.2
 | 
			
		||||
    hostname: wazuh.dashboard
 | 
			
		||||
    restart: always
 | 
			
		||||
    ports:
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@ version: '3.7'
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  wazuh.manager:
 | 
			
		||||
    image: wazuh/wazuh-manager:4.7.0
 | 
			
		||||
    image: wazuh/wazuh-manager:4.7.2
 | 
			
		||||
    hostname: wazuh.manager
 | 
			
		||||
    restart: always
 | 
			
		||||
    ulimits:
 | 
			
		||||
@@ -46,7 +46,7 @@ services:
 | 
			
		||||
      - ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
 | 
			
		||||
 | 
			
		||||
  wazuh.indexer:
 | 
			
		||||
    image: wazuh/wazuh-indexer:4.7.0
 | 
			
		||||
    image: wazuh/wazuh-indexer:4.7.2
 | 
			
		||||
    hostname: wazuh.indexer
 | 
			
		||||
    restart: always
 | 
			
		||||
    ports:
 | 
			
		||||
@@ -71,7 +71,7 @@ services:
 | 
			
		||||
      - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml
 | 
			
		||||
 | 
			
		||||
  wazuh.dashboard:
 | 
			
		||||
    image: wazuh/wazuh-dashboard:4.7.0
 | 
			
		||||
    image: wazuh/wazuh-dashboard:4.7.2
 | 
			
		||||
    hostname: wazuh.dashboard
 | 
			
		||||
    restart: always
 | 
			
		||||
    ports:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user