Skip to content

Commit

Permalink
Revert "TARGETARCH cannot have a default value, and set GOARCH simila…
Browse files Browse the repository at this point in the history
…rly (#1014)"

This reverts commit 2ee9658.
  • Loading branch information
julianocosta89 authored Aug 7, 2023
1 parent 2671bfb commit e9d1bdb
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
ARG TARGETARCH=arm64
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=$TARGETARCH
ENV GOARCH=arm64
ENV CGO_ENABLED=0
RUN /builder --config ./manifest.yml --output-path /build/_build
RUN ls /build/_build
Expand Down

0 comments on commit e9d1bdb

Please sign in to comment.