mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-11-03 21:43:17 +00:00 
			
		
		
		
	WIP CI: testing docker-compose build
This commit is contained in:
		
							
								
								
									
										20
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/push.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,18 +1,14 @@
 | 
			
		||||
name: Docker Image CI
 | 
			
		||||
name: Wazuh Docker pipeline
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [ feature-github-actions ]
 | 
			
		||||
  pull_request:
 | 
			
		||||
    branches: [ feature-github-actions ]
 | 
			
		||||
on: [push]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
 | 
			
		||||
  build:
 | 
			
		||||
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - name: Build the Docker image
 | 
			
		||||
      run: docker build wazuh --tag wazuh:$(date +%s)
 | 
			
		||||
    - name: Check out code
 | 
			
		||||
      uses: actions/checkout@v2
 | 
			
		||||
    - name: Build the docker-compose stack
 | 
			
		||||
      run: docker-compose -f docker-compose.yml
 | 
			
		||||
    - name: Check running containers
 | 
			
		||||
      run: docker ps -a
 | 
			
		||||
@@ -3,7 +3,7 @@ version: '2'
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  wazuh:
 | 
			
		||||
    image: wazuh/wazuh:3.13.1_7.8.0
 | 
			
		||||
    build: wazuh
 | 
			
		||||
    hostname: wazuh-manager
 | 
			
		||||
    restart: always
 | 
			
		||||
    ports:
 | 
			
		||||
@@ -13,7 +13,7 @@ services:
 | 
			
		||||
      - "55000:55000"
 | 
			
		||||
 | 
			
		||||
  elasticsearch:
 | 
			
		||||
    image: wazuh/wazuh-elasticsearch:3.13.1_7.8.0
 | 
			
		||||
    build: elasticsearch
 | 
			
		||||
    hostname: elasticsearch
 | 
			
		||||
    restart: always
 | 
			
		||||
    ports:
 | 
			
		||||
@@ -30,7 +30,7 @@ services:
 | 
			
		||||
    mem_limit: 2g
 | 
			
		||||
 | 
			
		||||
  kibana:
 | 
			
		||||
    image: wazuh/wazuh-kibana:3.13.1_7.8.0
 | 
			
		||||
    build: kibana
 | 
			
		||||
    hostname: kibana
 | 
			
		||||
    restart: always
 | 
			
		||||
    depends_on:
 | 
			
		||||
@@ -40,7 +40,7 @@ services:
 | 
			
		||||
      - wazuh:wazuh
 | 
			
		||||
 | 
			
		||||
  nginx:
 | 
			
		||||
    image: wazuh/wazuh-nginx:3.13.1_7.8.0
 | 
			
		||||
    build: nginx
 | 
			
		||||
    hostname: nginx
 | 
			
		||||
    restart: always
 | 
			
		||||
    environment:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user