app/*/multiarch: return back empty value for TARGETARCH

follow-up after 91456ab5bb

docker buildx uses special variables, such as TARGETARCH and it shouldn't be overwritten.

 See this article for details
https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/

Signed-off-by: f41gh7 <nik@victoriametrics.com>
This commit is contained in:
f41gh7 2024-09-06 18:12:17 +02:00
parent feafb30266
commit 95acca6b52
No known key found for this signature in database
GPG key ID: 4558311CF775EC72
9 changed files with 9 additions and 9 deletions

View file

@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 9428 EXPOSE 9428
ENTRYPOINT ["/victoria-logs-prod"] ENTRYPOINT ["/victoria-logs-prod"]
ARG TARGETARCH=non-existing ARG TARGETARCH
COPY victoria-logs-linux-${TARGETARCH}-prod ./victoria-logs-prod COPY victoria-logs-linux-${TARGETARCH}-prod ./victoria-logs-prod

View file

@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8428 EXPOSE 8428
ENTRYPOINT ["/victoria-metrics-prod"] ENTRYPOINT ["/victoria-metrics-prod"]
ARG TARGETARCH=non-existing ARG TARGETARCH
COPY victoria-metrics-linux-${TARGETARCH}-prod ./victoria-metrics-prod COPY victoria-metrics-linux-${TARGETARCH}-prod ./victoria-metrics-prod

View file

@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8429 EXPOSE 8429
ENTRYPOINT ["/vmagent-prod"] ENTRYPOINT ["/vmagent-prod"]
ARG TARGETARCH=non-existing ARG TARGETARCH
COPY vmagent-linux-${TARGETARCH}-prod ./vmagent-prod COPY vmagent-linux-${TARGETARCH}-prod ./vmagent-prod

View file

@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8429 EXPOSE 8429
ENTRYPOINT ["/vmalert-tool-prod"] ENTRYPOINT ["/vmalert-tool-prod"]
ARG TARGETARCH=non-existing ARG TARGETARCH
COPY vmalert-tool-linux-${TARGETARCH}-prod ./vmalert-tool-prod COPY vmalert-tool-linux-${TARGETARCH}-prod ./vmalert-tool-prod

View file

@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8880 EXPOSE 8880
ENTRYPOINT ["/vmalert-prod"] ENTRYPOINT ["/vmalert-prod"]
ARG TARGETARCH=non-existing ARG TARGETARCH
COPY vmalert-linux-${TARGETARCH}-prod ./vmalert-prod COPY vmalert-linux-${TARGETARCH}-prod ./vmalert-prod

View file

@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8427 EXPOSE 8427
ENTRYPOINT ["/vmauth-prod"] ENTRYPOINT ["/vmauth-prod"]
ARG TARGETARCH=non-existing ARG TARGETARCH
COPY vmauth-linux-${TARGETARCH}-prod ./vmauth-prod COPY vmauth-linux-${TARGETARCH}-prod ./vmauth-prod

View file

@ -7,5 +7,5 @@ RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
FROM $root_image FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT ["/vmbackup-prod"] ENTRYPOINT ["/vmbackup-prod"]
ARG TARGETARCH=non-existing ARG TARGETARCH
COPY vmbackup-linux-${TARGETARCH}-prod ./vmbackup-prod COPY vmbackup-linux-${TARGETARCH}-prod ./vmbackup-prod

View file

@ -7,5 +7,5 @@ RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
FROM $root_image FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT ["/vmctl-prod"] ENTRYPOINT ["/vmctl-prod"]
ARG TARGETARCH=non-existing ARG TARGETARCH
COPY vmctl-linux-${TARGETARCH}-prod ./vmctl-prod COPY vmctl-linux-${TARGETARCH}-prod ./vmctl-prod

View file

@ -7,5 +7,5 @@ RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
FROM $root_image FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT ["/vmrestore-prod"] ENTRYPOINT ["/vmrestore-prod"]
ARG TARGETARCH=non-existing ARG TARGETARCH
COPY vmrestore-linux-${TARGETARCH}-prod ./vmrestore-prod COPY vmrestore-linux-${TARGETARCH}-prod ./vmrestore-prod