mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-11-04 05:53:16 +00:00 
			
		
		
		
	Update wazuh version to 4.0.3 + block remote commands (#425)
This commit is contained in:
		@@ -3,7 +3,7 @@ FROM waystonesystems/baseimage-centos:0.2.0
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Arguments
 | 
					# Arguments
 | 
				
			||||||
ARG FILEBEAT_VERSION=7.9.1
 | 
					ARG FILEBEAT_VERSION=7.9.1
 | 
				
			||||||
ARG WAZUH_VERSION=4.0.1-1
 | 
					ARG WAZUH_VERSION=4.0.3-1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Environment variables
 | 
					# Environment variables
 | 
				
			||||||
ENV API_USER="foo" \
 | 
					ENV API_USER="foo" \
 | 
				
			||||||
@@ -24,6 +24,9 @@ baseurl=https://packages.wazuh.com/4.x/yum/\n\
 | 
				
			|||||||
protect=1\n'\
 | 
					protect=1\n'\
 | 
				
			||||||
>> /etc/yum.repos.d/wazuh.repo
 | 
					>> /etc/yum.repos.d/wazuh.repo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Copy Wazuh Manager custom package
 | 
				
			||||||
 | 
					COPY config/wazuh-manager-4.0.3-1.x86_64.rpm /tmp/wazuh-manager-4.0.3-1.x86_64.rpm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install packages
 | 
					# Install packages
 | 
				
			||||||
RUN set -x && \
 | 
					RUN set -x && \
 | 
				
			||||||
    curl -sL https://rpm.nodesource.com/setup_8.x | bash - && \
 | 
					    curl -sL https://rpm.nodesource.com/setup_8.x | bash - && \
 | 
				
			||||||
@@ -33,7 +36,7 @@ RUN set -x && \
 | 
				
			|||||||
    yum upgrade -y &&\
 | 
					    yum upgrade -y &&\
 | 
				
			||||||
    yum install -y openssl vim expect python-boto python-pip python-cryptography && \
 | 
					    yum install -y openssl vim expect python-boto python-pip python-cryptography && \
 | 
				
			||||||
    yum install -y postfix bsd-mailx mailx ca-certificates && \
 | 
					    yum install -y postfix bsd-mailx mailx ca-certificates && \
 | 
				
			||||||
    yum install -y wazuh-manager-${WAZUH_VERSION} && \
 | 
					    yum install -y /tmp/wazuh-manager-4.0.3-1.x86_64.rpm && \
 | 
				
			||||||
    yum clean all && \
 | 
					    yum clean all && \
 | 
				
			||||||
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
 | 
					    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
 | 
				
			||||||
    rm -f /var/ossec/logs/alerts/*/*/* && \
 | 
					    rm -f /var/ossec/logs/alerts/*/*/* && \
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								wazuh/config/wazuh-manager-4.0.3-1.x86_64.rpm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								wazuh/config/wazuh-manager-4.0.3-1.x86_64.rpm
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user