Skip to content

Commit 57fd364

Browse files
authoredFeb 12, 2025··
🌱 synch dockerfiles with grpc-health-probe version in go.mod (#1577)
* synch dockerfiles with grpc-health-probe version in go.mod Signed-off-by: Jordan Keister <[email protected]> * review updates Signed-off-by: Jordan Keister <[email protected]> --------- Signed-off-by: Jordan Keister <[email protected]>
1 parent b7c42a0 commit 57fd364

4 files changed

+6
-6
lines changed
 

‎registry.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.23-alpine as builder
1+
FROM golang:1.23-alpine AS builder
22

33
RUN apk update && apk add sqlite build-base git mercurial bash
44
WORKDIR /build
55

66
COPY . .
77
RUN make static
8-
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.28 && \
8+
RUN GRPC_HEALTH_PROBE_VERSION=$(go list -m github.com/grpc-ecosystem/grpc-health-probe| awk '{print $2}') && \
99
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \
1010
chmod +x /bin/grpc_health_probe
1111

‎release/goreleaser.opm.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# build opm images. See the configurations in .goreleaser.yaml
33
# and .github/workflows/release.yaml.
44

5-
FROM ghcr.io/grpc-ecosystem/grpc-health-probe:v0.4.29 as grpc_health_probe
5+
FROM ghcr.io/grpc-ecosystem/grpc-health-probe:v0.4.37 AS grpc_health_probe
66
FROM gcr.io/distroless/static:debug
77
COPY --from=grpc_health_probe /ko-app/grpc-health-probe /bin/grpc_health_probe
88
COPY ["nsswitch.conf", "/etc/nsswitch.conf"]

‎upstream-builder.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.23-alpine as builder
1+
FROM golang:1.23-alpine AS builder
22

33
RUN apk update && apk add sqlite build-base git mercurial bash linux-headers
44
WORKDIR /build
55

66
COPY . .
77
RUN make static
8-
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.28 && \
8+
RUN GRPC_HEALTH_PROBE_VERSION=$(go list -m github.com/grpc-ecosystem/grpc-health-probe| awk '{print $2}') && \
99
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \
1010
chmod +x /bin/grpc_health_probe
1111

‎upstream-opm-builder.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ WORKDIR /build
1414

1515
COPY . .
1616
RUN make static
17-
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.28 && \
17+
RUN GRPC_HEALTH_PROBE_VERSION=$(go list -m github.com/grpc-ecosystem/grpc-health-probe| awk '{print $2}') && \
1818
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \
1919
chmod +x /bin/grpc_health_probe
2020

0 commit comments

Comments
 (0)
Please sign in to comment.