introduced dockerhealth
This commit is contained in:
parent
640b38ea5f
commit
f9d1b22a7e
3
main.go
3
main.go
@ -15,6 +15,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"git.tordarus.net/Tordarus/dockerhealth"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -34,6 +36,7 @@ func main() {
|
||||
fileServer = http.FileServer(http.Dir(*directory))
|
||||
http.HandleFunc("/", handler)
|
||||
|
||||
dockerhealth.Healthy = true
|
||||
err := http.ListenAndServe(fmt.Sprintf("%s:%d", *intf, *port), nil)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Loading…
Reference in New Issue
Block a user