Skip to content

Commit 19d1245

Browse files
committed
deps: Update dependencies to latest
1 parent f537bfb commit 19d1245

File tree

7 files changed

+84
-15
lines changed

7 files changed

+84
-15
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
2626
go build -ldflags "-X github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/cmd.metadataString=container"
2727

2828
# Final Stage
29-
FROM gcr.io/distroless/static:nonroot@sha256:e8a4044e0b4ae4257efa45fc026c0bc30ad320d43bd4c1a7d5271bd241e386d0
29+
FROM gcr.io/distroless/static:nonroot@sha256:127eb3c971acb50a3c7b511a978bb497b56add4c91225e57605b3b43cc0a9662
3030

3131
LABEL org.opencontainers.image.source="https://github.com/GoogleCloudPlatform/cloud-sql-proxy"
3232

Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
2626
go build -ldflags "-X github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/cmd.metadataString=container.alpine"
2727

2828
# Final stage
29-
FROM alpine:3@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412
29+
FROM alpine:3@sha256:85f2b723e106c34644cd5851d7e81ee87da98ac54672b29947c052a45d31dc2f
3030

3131
LABEL org.opencontainers.image.source="https://github.com/GoogleCloudPlatform/cloud-sql-proxy"
3232

Dockerfile.bookworm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
2626
go build -ldflags "-X github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/cmd.metadataString=container.bookworm"
2727

2828
# Final stage
29-
FROM gcr.io/cloud-marketplace-containers/google/debian12@sha256:93c772497eae113717fd179ce3ccafaa7bcacb22fcca95ebc708245bdea5be5a
29+
FROM gcr.io/cloud-marketplace-containers/google/debian12@sha256:267bdc74bf7dbb77083224ce167145d30629e70389ede6f80b3c85a0d2269635
3030

3131
LABEL org.opencontainers.image.source="https://github.com/GoogleCloudPlatform/cloud-sql-proxy"
3232

Dockerfile.bullseye

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
2626
go build -ldflags "-X github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/cmd.metadataString=container.bullseye"
2727

2828
# Final stage
29-
FROM gcr.io/cloud-marketplace-containers/google/debian11@sha256:73c77188fb99d5606202186172825fd67c4a074fa706ce91bba0d9be801319e1
29+
FROM gcr.io/cloud-marketplace-containers/google/debian11@sha256:fdcf1ada84cc46ab0978baf11b4a7d75db3dec0474ac12cc74f1a43a80b2df8d
3030

3131
LABEL org.opencontainers.image.source="https://github.com/GoogleCloudPlatform/cloud-sql-proxy"
3232

Dockerfilebak

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Use the latest stable golang 1.x to compile to a binary
16+
FROM --platform=$BUILDPLATFORM golang:1 as build
17+
18+
WORKDIR /go/src/cloud-sql-proxy
19+
COPY . .
20+
21+
ARG TARGETOS
22+
ARG TARGETARCH
23+
24+
RUN go get ./...
25+
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
26+
go build -ldflags "-X github.com/GoogleCloudPlatform/cloud-sql-proxy/v2/cmd.metadataString=container"
27+
28+
# Final Stage
29+
FROM gcr.io/distroless/static:nonroot@sha256:e8a4044e0b4ae4257efa45fc026c0bc30ad320d43bd4c1a7d5271bd241e386d0
30+
31+
LABEL org.opencontainers.image.source="https://github.com/GoogleCloudPlatform/cloud-sql-proxy"
32+
33+
COPY --from=build --chown=nonroot /go/src/cloud-sql-proxy/cloud-sql-proxy /cloud-sql-proxy
34+
# set the uid as an integer for compatibility with runAsNonRoot in Kubernetes
35+
USER 65532
36+
ENTRYPOINT ["/cloud-sql-proxy"]

go.mod

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/coreos/go-systemd/v22 v22.6.0
1010
github.com/go-sql-driver/mysql v1.9.3
1111
github.com/google/go-cmp v0.7.0
12-
github.com/hanwen/go-fuse/v2 v2.8.0
12+
github.com/hanwen/go-fuse/v2 v2.9.0
1313
github.com/jackc/pgx/v5 v5.7.6
1414
github.com/microsoft/go-mssqldb v1.9.3
1515
github.com/spf13/cobra v1.10.1
@@ -26,8 +26,8 @@ require (
2626
cloud.google.com/go/auth v0.17.0 // indirect
2727
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
2828
cloud.google.com/go/compute/metadata v0.9.0 // indirect
29-
cloud.google.com/go/monitoring v1.24.2 // indirect
30-
cloud.google.com/go/trace v1.11.6 // indirect
29+
cloud.google.com/go/monitoring v1.24.3 // indirect
30+
cloud.google.com/go/trace v1.11.7 // indirect
3131
filippo.io/edwards25519 v1.1.0 // indirect
3232
github.com/aws/aws-sdk-go v1.55.8 // indirect
3333
github.com/beorn7/perks v1.0.1 // indirect
@@ -54,32 +54,33 @@ require (
5454
github.com/jmespath/go-jmespath v0.4.0 // indirect
5555
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5656
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
57-
github.com/prometheus/client_golang v1.23.0 // indirect
57+
github.com/prometheus/client_golang v1.23.2 // indirect
5858
github.com/prometheus/client_model v0.6.2 // indirect
59-
github.com/prometheus/common v0.65.0 // indirect
60-
github.com/prometheus/procfs v0.17.0 // indirect
61-
github.com/prometheus/prometheus v0.305.0 // indirect
59+
github.com/prometheus/common v0.67.1 // indirect
60+
github.com/prometheus/procfs v0.18.0 // indirect
61+
github.com/prometheus/prometheus v0.307.2 // indirect
6262
github.com/prometheus/statsd_exporter v0.28.0 // indirect
6363
github.com/russross/blackfriday/v2 v2.1.0 // indirect
64-
github.com/sagikazarmark/locafero v0.11.0 // indirect
64+
github.com/sagikazarmark/locafero v0.12.0 // indirect
6565
github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect
6666
github.com/spf13/afero v1.15.0 // indirect
6767
github.com/spf13/cast v1.10.0 // indirect
6868
github.com/subosito/gotenv v1.6.0 // indirect
6969
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
70-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.62.0 // indirect
70+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.63.0 // indirect
7171
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 // indirect
7272
go.opentelemetry.io/otel v1.38.0 // indirect
7373
go.opentelemetry.io/otel/metric v1.38.0 // indirect
7474
go.opentelemetry.io/otel/trace v1.38.0 // indirect
75+
go.yaml.in/yaml/v2 v2.4.3 // indirect
7576
go.yaml.in/yaml/v3 v3.0.4 // indirect
7677
golang.org/x/crypto v0.43.0 // indirect
7778
golang.org/x/net v0.46.0 // indirect
7879
golang.org/x/sync v0.17.0 // indirect
7980
golang.org/x/text v0.30.0 // indirect
8081
golang.org/x/time v0.14.0 // indirect
81-
google.golang.org/genproto v0.0.0-20250811160224-6b04f9b4fc78 // indirect
82-
google.golang.org/genproto/googleapis/api v0.0.0-20250811160224-6b04f9b4fc78 // indirect
82+
google.golang.org/genproto v0.0.0-20251022142026-3a174f9686a8 // indirect
83+
google.golang.org/genproto/googleapis/api v0.0.0-20251022142026-3a174f9686a8 // indirect
8384
google.golang.org/genproto/googleapis/rpc v0.0.0-20251022142026-3a174f9686a8 // indirect
8485
google.golang.org/grpc v1.76.0 // indirect
8586
google.golang.org/protobuf v1.36.10 // indirect

0 commit comments

Comments
 (0)