Skip to content

Commit

Permalink
Added grpc health probe binary for readiness and liveness check (flyt…
Browse files Browse the repository at this point in the history
  • Loading branch information
pmahindrakar-oss authored May 17, 2022
1 parent 24b3c57 commit 491cb93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions flyteadmin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@
FROM golang:1.18-alpine3.15 as builder
RUN apk add git openssh-client make curl

# Create the artifacts directory
RUN mkdir /artifacts

# Pull GRPC health probe binary for liveness and readiness checks
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.11 && \
wget -qO/artifacts/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
chmod +x /artifacts/grpc_health_probe

# COPY only the go mod files for efficient caching
COPY go.mod go.sum /go/src/github.com/flyteorg/flyteadmin/
WORKDIR /go/src/github.com/flyteorg/flyteadmin

# Pull dependencies
RUN go mod download


# COPY the rest of the source code
COPY . /go/src/github.com/flyteorg/flyteadmin/

Expand Down

0 comments on commit 491cb93

Please sign in to comment.