Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 3 additions & 18 deletions scripts/build/docker/debug/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
# Copyright (c) 2024 The Jaeger Authors.
# SPDX-License-Identifier: Apache-2.0

FROM golang:1.25.5-alpine@sha256:ac09a5f469f307e5da71e766b0bd59c9c49ea460a528cc3e6686513d64a6f1fb AS build
ARG TARGETARCH
ENV GOPATH /go
RUN apk add --update --no-cache ca-certificates make git build-base mailcap
# We use a pre-built base image that includes Delve debugger.
# See https://github.com/jaegertracing/base-image-with-debugger

COPY go.mod go.sum /go/src/debug-delve/

# TODO: Remove s390x once go-delve adds support for it (https://github.com/go-delve/delve/issues/2883)
# TODO: Remove ppc64le once support is released (https://github.com/go-delve/delve/issues/1564) - not yet as of [email protected]
RUN if [[ "$TARGETARCH" == "s390x" || "$TARGETARCH" == "ppc64le" ]] ; then \
touch /go/bin/dlv; \
else \
cd /go/src/debug-delve && go mod download && go build -o /go/bin/dlv github.com/go-delve/delve/cmd/dlv; \
fi

FROM golang:1.25.5-alpine@sha256:ac09a5f469f307e5da71e766b0bd59c9c49ea460a528cc3e6686513d64a6f1fb
COPY --from=build /go/bin/dlv /go/bin/dlv
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /etc/mime.types /etc/mime.types
FROM ghcr.io/jaegertracing/base-image-with-debugger:0.1.0
2 changes: 0 additions & 2 deletions scripts/lint/check-go-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ for file in $(find . -type f -name go.mod | grep -v '^./go.mod'); do
check "$file" "^go\s\+$version_regex" "$go_latest_version"
done

check scripts/build/docker/debug/Dockerfile "^.*golang:$version_regex" "$go_latest_version"

IFS='|' read -r -a gha_workflows <<< "$(grep -rl go-version .github/workflows | tr '\n' '|')"
for gha_workflow in "${gha_workflows[@]}"; do
check "$gha_workflow" "^\s*go-version:\s\+$version_regex" "$go_latest_version"
Expand Down
Loading