mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-10-31 03:53:33 +00:00 
			
		
		
		
	Add wazuh-dashboard Dockerfile
This commit is contained in:
		
							
								
								
									
										25
									
								
								wazuh-dashboard/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								wazuh-dashboard/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| # Wazuh Docker Copyright (C) 2021 Wazuh Inc. (License GPLv2) | ||||
| FROM ubuntu:20.04 | ||||
|  | ||||
| ARG WAZUH_VERSION=4.3.0-1_amd64 | ||||
| ARG TEMPLATE_VERSION="master" | ||||
| ARG FILEBEAT_CHANNEL=filebeat-oss | ||||
| ARG FILEBEAT_VERSION=7.10.2 | ||||
| ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz" | ||||
|  | ||||
| RUN apt-get update && apt install curl gnupg -y | ||||
|  | ||||
| RUN curl https://s3.amazonaws.com/warehouse.wazuh.com/stack/dashboard/stable/wazuh-dashboard_${WAZUH_VERSION}.deb --output wazuh-dashboard_${WAZUH_VERSION}.deb && \ | ||||
|     dpkg -i wazuh-dashboard_${WAZUH_VERSION}.deb | ||||
|  | ||||
| # Prepare permanent data | ||||
| # Sync calls are due to https://github.com/docker/docker/issues/9547 | ||||
|  | ||||
| COPY config/entrypoint.sh / | ||||
|  | ||||
| RUN chmod 700 /entrypoint.sh | ||||
|  | ||||
| # Services ports | ||||
| EXPOSE 5601 443 | ||||
|  | ||||
| ENTRYPOINT [ "/entrypoint.sh" ] | ||||
							
								
								
									
										10
									
								
								wazuh-dashboard/config/entrypoint.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								wazuh-dashboard/config/entrypoint.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| #!/bin/bash | ||||
| # Wazuh Docker Copyright (C) 2021 Wazuh Inc. (License GPLv2) | ||||
|  | ||||
| ############################################################################## | ||||
| # Start Wazuh dashboard | ||||
| ############################################################################## | ||||
|  | ||||
| service wazuh-dashboard start | ||||
|  | ||||
| service wazuh-dashboard enable | ||||
| @@ -1,24 +1,21 @@ | ||||
| # Wazuh Docker Copyright (C) 2021 Wazuh Inc. (License GPLv2) | ||||
| FROM centos:7 | ||||
| FROM ubuntu:20.04 | ||||
|  | ||||
| ARG WAZUH_VERSION=4.3.0 | ||||
| ARG TEMPLATE_VERSION="master" | ||||
| ARG FILEBEAT_CHANNEL=filebeat-oss | ||||
| ARG FILEBEAT_VERSION=7.10.2 | ||||
| ARG WAZUH_VERSION=4.3.0-1 | ||||
| ARG TEMPLATE_VERSION="master" | ||||
| ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz" | ||||
|  | ||||
| USER root | ||||
| RUN apt-get update && apt install curl gnupg -y | ||||
|  | ||||
| # Set repositories. | ||||
| RUN rpm --import https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH | ||||
| RUN curl -s https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH | apt-key add - && \ | ||||
|     echo "deb https://packages-dev.wazuh.com/trash/apt/ unstable main" | tee -a /etc/apt/sources.list.d/wazuh.list && \ | ||||
|     apt-get update && \ | ||||
|     apt-get install wazuh-indexer | ||||
|  | ||||
| COPY config/wazuh.repo /etc/yum.repos.d/wazuh.repo | ||||
|  | ||||
| RUN yum --enablerepo=updates clean metadata && \ | ||||
|   yum upgrade -y && \ | ||||
|   yum -y install wazuh-indexer -y && \ | ||||
|   sed -i "s/^enabled=1/enabled=0/" /etc/yum.repos.d/wazuh.repo && \ | ||||
|   yum clean all && rm -rf /var/cache/yum | ||||
| # Prepare permanent data | ||||
| # Sync calls are due to https://github.com/docker/docker/issues/9547 | ||||
|  | ||||
| COPY config/entrypoint.sh / | ||||
|  | ||||
|   | ||||
							
								
								
									
										30
									
								
								wazuh-indexer/Dockerfile_centos
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								wazuh-indexer/Dockerfile_centos
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| # Wazuh Docker Copyright (C) 2021 Wazuh Inc. (License GPLv2) | ||||
| FROM centos:7 | ||||
|  | ||||
| ARG FILEBEAT_CHANNEL=filebeat-oss | ||||
| ARG FILEBEAT_VERSION=7.10.2 | ||||
| ARG WAZUH_VERSION=4.3.0-1 | ||||
| ARG TEMPLATE_VERSION="master" | ||||
| ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz" | ||||
|  | ||||
| USER root | ||||
|  | ||||
| # Set repositories. | ||||
| RUN rpm --import https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH | ||||
|  | ||||
| COPY config/wazuh.repo /etc/yum.repos.d/wazuh.repo | ||||
|  | ||||
| RUN yum --enablerepo=updates clean metadata && \ | ||||
|   yum upgrade -y && \ | ||||
|   yum -y install wazuh-indexer -y && \ | ||||
|   sed -i "s/^enabled=1/enabled=0/" /etc/yum.repos.d/wazuh.repo && \ | ||||
|   yum clean all && rm -rf /var/cache/yum | ||||
|  | ||||
| COPY config/entrypoint.sh / | ||||
|  | ||||
| RUN chmod 700 /entrypoint.sh | ||||
|  | ||||
| # Services ports | ||||
| EXPOSE 9700 | ||||
|  | ||||
| ENTRYPOINT [ "/entrypoint.sh" ] | ||||
| @@ -1,27 +0,0 @@ | ||||
| # Wazuh Docker Copyright (C) 2021 Wazuh Inc. (License GPLv2) | ||||
| FROM ubuntu:focal | ||||
|  | ||||
| ARG WAZUH_VERSION=4.3.0 | ||||
| ARG TEMPLATE_VERSION="master" | ||||
| ARG FILEBEAT_CHANNEL=filebeat-oss | ||||
| ARG FILEBEAT_VERSION=7.10.2 | ||||
| ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.1.tar.gz" | ||||
|  | ||||
| RUN apt-get update && apt install curl gnupg -y | ||||
|  | ||||
| RUN curl -s https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH | apt-key add - && \ | ||||
|     echo "deb https://packages-dev.wazuh.com/trash/apt/ unstable main" | tee -a /etc/apt/sources.list.d/wazuh.list && \ | ||||
|     apt-get update && \ | ||||
|     apt-get install wazuh-indexer | ||||
|  | ||||
| # Prepare permanent data | ||||
| # Sync calls are due to https://github.com/docker/docker/issues/9547 | ||||
|  | ||||
| RUN chmod 755 /permanent_data.sh && \ | ||||
|     sync && /permanent_data.sh && \ | ||||
|     sync && rm /permanent_data.sh | ||||
|  | ||||
| # Services ports | ||||
| EXPOSE 9700 | ||||
|  | ||||
| ENTRYPOINT [ "/init" ] | ||||
		Reference in New Issue
	
	Block a user