mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-10-30 17:48:09 +00:00 
			
		
		
		
	 40330bcbdf
			
		
	
	40330bcbdf
	
	
	
		
			
			* [build]: wait 60 seconds for docker engine to start On some platforms, it can take more than 1 second for docker engine to start. Signed-off-by: Guohan Lu <gulv@microsoft.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			199 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			199 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| total_time=$1
 | |
| cnt=0
 | |
| while [ $cnt -le $total_time ]; do
 | |
|     docker info 1>/dev/null
 | |
|     rv=$?
 | |
|     if [ $rv -eq 0 ]; then
 | |
|         exit 0
 | |
|     fi
 | |
|     sleep 1
 | |
|     cnt=$((cnt+1))
 | |
| done
 | |
| 
 | |
| exit 1
 |