init commit
commit
655e594684
|
@ -0,0 +1,4 @@
|
||||||
|
FROM alpine:3.4
|
||||||
|
RUN apk add --update bash && rm -rf /var/cache/apk/*
|
||||||
|
COPY ping /
|
||||||
|
CMD ["/ping"]
|
|
@ -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
|
||||||
|
```
|
Loading…
Reference in New Issue