Add readme with instructions
This commit is contained in:
parent
df63195f8b
commit
b9db87bb54
|
@ -1 +0,0 @@
|
||||||
vendor/
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
FROM golang:1.10-alpine as builder
|
||||||
|
|
||||||
|
RUN apk add --no-cache gcc musl-dev linux-headers
|
||||||
|
|
||||||
|
RUN mkdir -p /go/src/github.com/status-im/boothealth
|
||||||
|
ADD . /go/src/github.com/status-im/boothealth
|
||||||
|
RUN cd /go/src/github.com/status-im/boothealth && go build -o boothealth .
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN apk add --no-cache ca-certificates bash
|
||||||
|
|
||||||
|
COPY --from=builder /go/src/github.com/status-im/boothealth/boothealth /usr/local/bin/boothealth
|
||||||
|
ENTRYPOINT ["/usr/local/bin/boothealth"]
|
|
@ -170,6 +170,6 @@
|
||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
analyzer-version = 1
|
analyzer-version = 1
|
||||||
inputs-digest = "517df5b32622f3e1771900b93af4035cb0aed63c293f62def8af02475d668afd"
|
inputs-digest = "8dd5e51f20dde29abceeed1675ff58829ee2758810b1fac4f7064dfcbd8dfa5d"
|
||||||
solver-name = "gps-cdcl"
|
solver-name = "gps-cdcl"
|
||||||
solver-version = 1
|
solver-version = 1
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/ethereum/go-ethereum"
|
name = "github.com/ethereum/go-ethereum"
|
||||||
version = "1.8.9"
|
version = "1.8.5"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/prometheus/client_golang"
|
name = "github.com/prometheus/client_golang"
|
||||||
|
@ -35,4 +35,3 @@
|
||||||
|
|
||||||
[prune]
|
[prune]
|
||||||
go-tests = true
|
go-tests = true
|
||||||
unused-packages = true
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
ensure:
|
||||||
|
dep ensure
|
||||||
|
git apply patch/* --directory=vendor/github.com/ethereum/go-ethereum
|
||||||
|
|
||||||
|
image:
|
||||||
|
docker build . -t statusteam/boothealth:latest
|
||||||
|
|
||||||
|
push:
|
||||||
|
docker push statusteam/boothealth:latest
|
|
@ -0,0 +1,25 @@
|
||||||
|
Bot for tracking health of the bootnodes
|
||||||
|
=========================================
|
||||||
|
|
||||||
|
How to run?
|
||||||
|
-------------
|
||||||
|
|
||||||
|
The only mandatory parameter is nursery nodes. For testing cluster we use:
|
||||||
|
|
||||||
|
1. enode://1b843c7697f6fc42a1f606fb3cfaac54e025f06789dc20ad9278be3388967cf21e3a1b1e4be51faecd66c2c3adef12e942b4fcdeb8727657abe60636efb6224f@206.189.6.46:30404
|
||||||
|
2. enode://b29100c8468e3e6604817174a15e4d71627458b0dcdbeea169ab2eb4ab2bbc6f24adbb175826726cec69db8fdba6c0dd60b3da598e530ede562180d300728659@206.189.6.48:30404
|
||||||
|
|
||||||
|
|
||||||
|
Image can be built with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make image
|
||||||
|
```
|
||||||
|
|
||||||
|
Or downloaded from `statusteam/boothleath` repository.
|
||||||
|
|
||||||
|
To execute health check run (also it can be run as a daemon):
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -ti statusteam/boothealth:latest -n enode://1b843c7697f6fc42a1f606fb3cfaac54e025f06789dc20ad9278be3388967cf21e3a1b1e4be51faecd66c2c3adef12e942b4fcdeb8727657abe60636efb6224f@206.189.6.46:30404 -n enode://b29100c8468e3e6604817174a15e4d71627458b0dcdbeea169ab2eb4ab2bbc6f24adbb175826726cec69db8fdba6c0dd60b3da598e530ede562180d300728659@206.189.6.48:30404
|
||||||
|
```
|
Loading…
Reference in New Issue