Skip to content

Commit

Permalink
TARGETARCH cannot have a default value, and set GOARCH similarly (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonkers authored Jul 24, 2023
1 parent e59b5ef commit 2ee9658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/otelcollector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

FROM golang:latest as build

ARG TARGETARCH=arm64
ARG TARGETARCH
ARG BUILDER_VERSION=0.81.0

RUN curl -L -o /builder https://github.com/open-telemetry/opentelemetry-collector/releases/download/cmd%2Fbuilder%2Fv${BUILDER_VERSION}/ocb_${BUILDER_VERSION}_linux_${TARGETARCH}
RUN chmod +x /builder
WORKDIR /build
COPY ./src/otelcollector/manifest.yml ./
ENV GOARCH=arm64
ENV GOARCH=$TARGETARCH
ENV CGO_ENABLED=0
RUN /builder --config ./manifest.yml --output-path /build/_build
RUN ls /build/_build
Expand Down

0 comments on commit 2ee9658

Please sign in to comment.