fix: build restic with patched grpc-go
This commit is contained in:
parent
c32fd99c73
commit
b992b12e4b
|
|
@ -1,6 +1,18 @@
|
||||||
FROM golang:1.26.5-alpine3.23@sha256:622e56dbc11a8cfe87cafa2331e9a201877271cbff918af53d3be315f3da88cc AS restic
|
FROM golang:1.26.5-alpine3.23@sha256:622e56dbc11a8cfe87cafa2331e9a201877271cbff918af53d3be315f3da88cc AS restic
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 go install github.com/restic/restic/cmd/restic@v0.19.1
|
ENV GOTOOLCHAIN=local
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
RUN go mod init who-need-help/restic-build \
|
||||||
|
&& go get github.com/restic/restic/cmd/restic@v0.19.1 \
|
||||||
|
&& go get google.golang.org/grpc@v1.82.1 \
|
||||||
|
&& test "$(go list -m -f '{{.Version}}' google.golang.org/grpc)" = "v1.82.1" \
|
||||||
|
&& CGO_ENABLED=0 go build \
|
||||||
|
-trimpath \
|
||||||
|
-ldflags="-s -w" \
|
||||||
|
-o /out/restic \
|
||||||
|
github.com/restic/restic/cmd/restic
|
||||||
|
|
||||||
FROM alpine:3.23.3@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659
|
FROM alpine:3.23.3@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659
|
||||||
|
|
||||||
|
|
@ -13,7 +25,7 @@ RUN apk add --no-cache \
|
||||||
postgresql18-client=18.4-r0 \
|
postgresql18-client=18.4-r0 \
|
||||||
zlib=1.3.2-r0
|
zlib=1.3.2-r0
|
||||||
|
|
||||||
COPY --from=restic /go/bin/restic /usr/local/bin/restic
|
COPY --from=restic /out/restic /usr/local/bin/restic
|
||||||
|
|
||||||
ENTRYPOINT []
|
ENTRYPOINT []
|
||||||
USER 10001:10001
|
USER 10001:10001
|
||||||
|
|
|
||||||
|
|
@ -110,9 +110,9 @@ Compose starts Traefik, PostGIS, Mailpit, a migration runner, 2 web replicas,
|
||||||
and 2 Oban worker replicas. It waits for readiness and verifies a PubSub message
|
and 2 Oban worker replicas. It waits for readiness and verifies a PubSub message
|
||||||
broadcast from a different BEAM node. Registration emails appear in Mailpit.
|
broadcast from a different BEAM node. Registration emails appear in Mailpit.
|
||||||
The Traefik image is reproducibly built from the checksum-pinned upstream
|
The Traefik image is reproducibly built from the checksum-pinned upstream
|
||||||
`v3.7.8` source with `grpc-go 1.82.1`. The Caddy edge is built from upstream
|
`v3.7.8` source with `grpc-go 1.82.1`. The Caddy edge and backup image build
|
||||||
`v2.11.4` with the same dependency pin. Both latest upstream dependency graphs
|
upstream Caddy `v2.11.4` and restic `v0.19.1` with the same dependency pin.
|
||||||
still contain older `grpc-go` versions affected by
|
Those latest upstream dependency graphs still contain older `grpc-go` versions affected by
|
||||||
[GHSA-hrxh-6v49-42gf](https://github.com/advisories/GHSA-hrxh-6v49-42gf).
|
[GHSA-hrxh-6v49-42gf](https://github.com/advisories/GHSA-hrxh-6v49-42gf).
|
||||||
|
|
||||||
Four deployment settings in the ignored environment select the runtime without
|
Four deployment settings in the ignored environment select the runtime without
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user