You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to build multi arch docker images for one of the application which uses confluent-kafka-go 2.6 version. Are these supported at this moment? I have tried multiple variations, still no luck.
How to reproduce
Building docker images in github actions.
FROM --platform=$BUILDPLATFORM golang:1.23.0-alpine AS base
# Install build dependenciesRUN apk add --no-cache bash alpine-sdk
# Build stage - Download dependencies and compileFROM base AS builder
WORKDIR /app
# Build arguments for multi-arch supportARG TARGETOS
ARG TARGETARCH
ENV GOOS=$TARGETOS
ENV GOARCH=$TARGETARCH
ENV CGO_ENABLED=1
# Download dependencies with secret mount for git authenticationRUN --mount=type=secret,id=access_token \
--mount=type=bind,target=.,source=. \
go mod download && go mod verify
RUN mkdir -p /app/out/${TARGETARCH}
RUN --mount=type=bind,target=.,source=.,rw=true \
make build BUILD_DIR=/app/out/${TARGETARCH}
# Final stage - Create the runtime imageFROM --platform=$TARGETPLATFORM alpine AS runner
WORKDIR /app
COPY --from=builder /app/out/${TARGETARCH}/sample-service /app/sample-service
EXPOSE 3000
ENTRYPOINT ["/app/sample-service"]
Description
Im trying to build multi arch docker images for one of the application which uses confluent-kafka-go 2.6 version. Are these supported at this moment? I have tried multiple variations, still no luck.
How to reproduce
And my
Makefile
This build fails with the following error:
Checklist
Please provide the following information:
LibraryVersion(2.6.1)
):ConfigMap{...}
"debug": ".."
as necessary)The text was updated successfully, but these errors were encountered: