-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #238 from bitcoin-sv/feature/mtm-health
Feature/mtm health
- Loading branch information
Showing
7 changed files
with
528 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
FROM ubuntu:latest | ||
|
||
RUN apt-get update && apt-get install ca-certificates -y && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN apt-get update && apt-get install ca-certificates wget -y && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./build/arc_linux_amd64 /service/arc | ||
|
||
WORKDIR /service | ||
|
||
# Add grpc_health_probe | ||
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.24 && \ | ||
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \ | ||
chmod +x /bin/grpc_health_probe | ||
|
||
RUN chmod +x arc | ||
|
||
EXPOSE 9090 | ||
|
||
CMD ["/service/arc"] | ||
CMD ["/service/arc"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
syntax = "proto3"; | ||
|
||
option go_package = ".;healthcheck"; | ||
|
||
package grpc.health.v1; | ||
|
||
message HealthCheckRequest { | ||
string service = 1; | ||
} | ||
|
||
message HealthCheckResponse { | ||
enum ServingStatus { | ||
UNKNOWN = 0; | ||
SERVING = 1; | ||
NOT_SERVING = 2; | ||
SERVICE_UNKNOWN = 3; // Used only by the Watch method. | ||
} | ||
ServingStatus status = 1; | ||
} | ||
|
||
service Health { | ||
rpc Check(HealthCheckRequest) returns (HealthCheckResponse); | ||
|
||
rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse); | ||
} |
Oops, something went wrong.