init commit
This commit is contained in:
		
							
								
								
									
										4
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| FROM alpine:3.4 | ||||
| RUN apk add --update bash && rm -rf /var/cache/apk/* | ||||
| COPY ping / | ||||
| CMD ["/ping"] | ||||
							
								
								
									
										19
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| # ping | ||||
|  | ||||
| ## ENV | ||||
| - `HOSTNAME` Server you would liek to continuously ping | ||||
| - `TIMEOUT` Number of seconds between timeouts | ||||
|  | ||||
| ## docker-compose.yml | ||||
| ```yml | ||||
| version: "2" | ||||
|  | ||||
| services: | ||||
|  | ||||
|   ping: | ||||
|     image: watsco/ping | ||||
|     restart: always | ||||
|     environment: | ||||
|       HOSTNAME: "10.0.0.61" | ||||
|       TIMEOUT: 300 | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user