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