mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	github: add healthcheck to the test DB services
This commit is contained in:
		
							parent
							
								
									8eb27c5267
								
							
						
					
					
						commit
						825f37d360
					
				
							
								
								
									
										46
									
								
								.github/workflows/docker-build-static.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										46
									
								
								.github/workflows/docker-build-static.yml
									
									
									
									
										vendored
									
									
								
							@ -180,11 +180,13 @@ jobs:
 | 
				
			|||||||
          ports:
 | 
					          ports:
 | 
				
			||||||
            - 3306:3306
 | 
					            - 3306:3306
 | 
				
			||||||
          env:
 | 
					          env:
 | 
				
			||||||
            MYSQL_USER: lldapuser
 | 
					            MARIADB_USER: lldapuser
 | 
				
			||||||
            MYSQL_PASSWORD: lldappass
 | 
					            MARIADB_PASSWORD: lldappass
 | 
				
			||||||
            MYSQL_DATABASE: lldap
 | 
					            MARIADB_DATABASE: lldap
 | 
				
			||||||
            MYSQL_ROOT_PASSWORD: rootpass
 | 
					            MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
 | 
				
			||||||
          options: --name mariadb
 | 
					          options: >-
 | 
				
			||||||
 | 
					            --name mariadb
 | 
				
			||||||
 | 
					            --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        postgresql:
 | 
					        postgresql:
 | 
				
			||||||
           image: postgres:latest
 | 
					           image: postgres:latest
 | 
				
			||||||
@ -194,7 +196,12 @@ jobs:
 | 
				
			|||||||
             POSTGRES_USER: lldapuser
 | 
					             POSTGRES_USER: lldapuser
 | 
				
			||||||
             POSTGRES_PASSWORD: lldappass
 | 
					             POSTGRES_PASSWORD: lldappass
 | 
				
			||||||
             POSTGRES_DB: lldap
 | 
					             POSTGRES_DB: lldap
 | 
				
			||||||
           options: --name postgresql
 | 
					           options: >-
 | 
				
			||||||
 | 
					             --health-cmd pg_isready
 | 
				
			||||||
 | 
					             --health-interval 10s
 | 
				
			||||||
 | 
					             --health-timeout 5s
 | 
				
			||||||
 | 
					             --health-retries 5
 | 
				
			||||||
 | 
					             --name postgresql
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
       - name: Download artifacts
 | 
					       - name: Download artifacts
 | 
				
			||||||
@ -256,17 +263,26 @@ jobs:
 | 
				
			|||||||
             POSTGRES_USER: lldapuser
 | 
					             POSTGRES_USER: lldapuser
 | 
				
			||||||
             POSTGRES_PASSWORD: lldappass
 | 
					             POSTGRES_PASSWORD: lldappass
 | 
				
			||||||
             POSTGRES_DB: lldap
 | 
					             POSTGRES_DB: lldap
 | 
				
			||||||
           options: --name postgresql
 | 
					           options: >-
 | 
				
			||||||
 | 
					             --health-cmd pg_isready
 | 
				
			||||||
 | 
					             --health-interval 10s
 | 
				
			||||||
 | 
					             --health-timeout 5s
 | 
				
			||||||
 | 
					             --health-retries 5
 | 
				
			||||||
 | 
					             --name postgresql
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mariadb:
 | 
					        mariadb:
 | 
				
			||||||
          image: mariadb:latest
 | 
					          image: mariadb:latest
 | 
				
			||||||
          ports:
 | 
					          ports:
 | 
				
			||||||
            - 3306:3306
 | 
					            - 3306:3306
 | 
				
			||||||
          env:
 | 
					          env:
 | 
				
			||||||
            MYSQL_USER: lldapuser
 | 
					            MARIADB_USER: lldapuser
 | 
				
			||||||
            MYSQL_PASSWORD: lldappass
 | 
					            MARIADB_PASSWORD: lldappass
 | 
				
			||||||
            MYSQL_DATABASE: lldap
 | 
					            MARIADB_DATABASE: lldap
 | 
				
			||||||
            MYSQL_ROOT_PASSWORD: rootpass
 | 
					            MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
 | 
				
			||||||
          options: --name mariadb
 | 
					          options: >-
 | 
				
			||||||
 | 
					            --name mariadb
 | 
				
			||||||
 | 
					            --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        mysql:
 | 
					        mysql:
 | 
				
			||||||
          image: mysql:latest
 | 
					          image: mysql:latest
 | 
				
			||||||
          ports:
 | 
					          ports:
 | 
				
			||||||
@ -275,8 +291,10 @@ jobs:
 | 
				
			|||||||
            MYSQL_USER: lldapuser
 | 
					            MYSQL_USER: lldapuser
 | 
				
			||||||
            MYSQL_PASSWORD: lldappass
 | 
					            MYSQL_PASSWORD: lldappass
 | 
				
			||||||
            MYSQL_DATABASE: lldap
 | 
					            MYSQL_DATABASE: lldap
 | 
				
			||||||
            MYSQL_ROOT_PASSWORD: rootpass
 | 
					            MYSQL_ALLOW_EMPTY_PASSWORD: 1
 | 
				
			||||||
          options: --name mysql
 | 
					          options: >-
 | 
				
			||||||
 | 
					            --name mysql
 | 
				
			||||||
 | 
					            --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user