all: suppress InvalidDefaultArgInFrom warning emitted by docker build when building Docker packages via make package-* command

Recent versions of `docker build` started generating the InvalidDefaultArgInFrom warning if Dockerfile contains
an ARG without default value. While this warning doesn't affect building Docker packages via `make package-*` commands,
it is better suppressing the warning, so it doesn't clutter `make package-*` output with the noise,
which can hide real issues in the future.
This commit is contained in:
Aliaksandr Valialkin 2024-09-03 14:00:25 +02:00
parent a21aea5dd4
commit ac507466c3
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB
23 changed files with 56 additions and 56 deletions

View file

@ -1,8 +1,8 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
EXPOSE 9428
ENTRYPOINT ["/victoria-logs-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./victoria-logs-prod

View file

@ -1,6 +1,6 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 9428
ENTRYPOINT ["/victoria-logs-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY victoria-logs-linux-${TARGETARCH}-prod ./victoria-logs-prod

View file

@ -1,8 +1,8 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
EXPOSE 8429
ENTRYPOINT ["/vmagent-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./vmagent-prod

View file

@ -1,6 +1,6 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8429
ENTRYPOINT ["/vmagent-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vmagent-linux-${TARGETARCH}-prod ./vmagent-prod

View file

@ -1,6 +1,6 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8429
ENTRYPOINT ["/vmalert-tool-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vmalert-tool-linux-${TARGETARCH}-prod ./vmalert-tool-prod

View file

@ -1,8 +1,8 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
EXPOSE 8880
ENTRYPOINT ["/vmalert-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./vmalert-prod

View file

@ -1,6 +1,6 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8880
ENTRYPOINT ["/vmalert-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vmalert-linux-${TARGETARCH}-prod ./vmalert-prod

View file

@ -1,8 +1,8 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
EXPOSE 8427
ENTRYPOINT ["/vmauth-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./vmauth-prod

View file

@ -1,6 +1,6 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8427
ENTRYPOINT ["/vmauth-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vmauth-linux-${TARGETARCH}-prod ./vmauth-prod

View file

@ -1,6 +1,6 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
ENTRYPOINT ["/vmbackup-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./vmbackup-prod

View file

@ -1,11 +1,11 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT ["/vmbackup-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vmbackup-linux-${TARGETARCH}-prod ./vmbackup-prod

View file

@ -1,6 +1,6 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
ENTRYPOINT ["/vmctl-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./vmctl-prod

View file

@ -1,11 +1,11 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT ["/vmctl-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vmctl-linux-${TARGETARCH}-prod ./vmctl-prod

View file

@ -1,8 +1,8 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
EXPOSE 8480
ENTRYPOINT ["/vminsert-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./vminsert-prod

View file

@ -1,6 +1,6 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8480
ENTRYPOINT ["/vminsert-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vminsert-linux-${TARGETARCH}-prod ./vminsert-prod

View file

@ -1,6 +1,6 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
ENTRYPOINT ["/vmrestore-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./vmrestore-prod

View file

@ -1,11 +1,11 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT ["/vmrestore-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vmrestore-linux-${TARGETARCH}-prod ./vmrestore-prod

View file

@ -1,8 +1,8 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
EXPOSE 8481
ENTRYPOINT ["/vmselect-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./vmselect-prod

View file

@ -1,6 +1,6 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image as certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
@ -8,5 +8,5 @@ FROM $root_image
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
EXPOSE 8481
ENTRYPOINT ["/vmselect-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vmselect-linux-${TARGETARCH}-prod ./vmselect-prod

View file

@ -1,4 +1,4 @@
ARG base_image
ARG base_image=non-existing
FROM $base_image
EXPOSE 8482
@ -6,5 +6,5 @@ EXPOSE 8400
EXPOSE 8401
ENTRYPOINT ["/vmstorage-prod"]
ARG src_binary
ARG src_binary=non-existing
COPY $src_binary ./vmstorage-prod

View file

@ -1,6 +1,6 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image=non-existing
FROM $certs_image as certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
@ -10,5 +10,5 @@ EXPOSE 8482
EXPOSE 8400
EXPOSE 8401
ENTRYPOINT ["/vmstorage-prod"]
ARG TARGETARCH
ARG TARGETARCH=non-existing
COPY vmstorage-linux-${TARGETARCH}-prod ./vmstorage-prod

View file

@ -1,6 +1,6 @@
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
ARG certs_image
ARG root_image
ARG certs_image=non-existing
ARG root_image==non-existing
FROM $certs_image AS certs
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates

View file

@ -1,4 +1,4 @@
ARG go_builder_image
ARG go_builder_image=non-existing
FROM $go_builder_image
STOPSIGNAL SIGINT
RUN apk add git gcc musl-dev make wget --no-cache && \