mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-24 22:07:23 +01:00
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:
parent
d523015f27
commit
91456ab5bb
@ -1,8 +1,8 @@
|
|||||||
ARG base_image
|
ARG base_image=non-existing
|
||||||
FROM $base_image
|
FROM $base_image
|
||||||
|
|
||||||
EXPOSE 9428
|
EXPOSE 9428
|
||||||
|
|
||||||
ENTRYPOINT ["/victoria-logs-prod"]
|
ENTRYPOINT ["/victoria-logs-prod"]
|
||||||
ARG src_binary
|
ARG src_binary=non-existing
|
||||||
COPY $src_binary ./victoria-logs-prod
|
COPY $src_binary ./victoria-logs-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image=non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
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
|
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
|
ARG TARGETARCH=non-existing
|
||||||
COPY victoria-logs-linux-${TARGETARCH}-prod ./victoria-logs-prod
|
COPY victoria-logs-linux-${TARGETARCH}-prod ./victoria-logs-prod
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
ARG base_image
|
ARG base_image=non-existing
|
||||||
FROM $base_image
|
FROM $base_image
|
||||||
|
|
||||||
EXPOSE 8428
|
EXPOSE 8428
|
||||||
|
|
||||||
ENTRYPOINT ["/victoria-metrics-prod"]
|
ENTRYPOINT ["/victoria-metrics-prod"]
|
||||||
ARG src_binary
|
ARG src_binary=non-existing
|
||||||
COPY $src_binary ./victoria-metrics-prod
|
COPY $src_binary ./victoria-metrics-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image=non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
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
|
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
|
ARG TARGETARCH=non-existing
|
||||||
COPY victoria-metrics-linux-${TARGETARCH}-prod ./victoria-metrics-prod
|
COPY victoria-metrics-linux-${TARGETARCH}-prod ./victoria-metrics-prod
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
ARG base_image
|
ARG base_image=non-existing
|
||||||
FROM $base_image
|
FROM $base_image
|
||||||
|
|
||||||
EXPOSE 8429
|
EXPOSE 8429
|
||||||
|
|
||||||
ENTRYPOINT ["/vmagent-prod"]
|
ENTRYPOINT ["/vmagent-prod"]
|
||||||
ARG src_binary
|
ARG src_binary=non-existing
|
||||||
COPY $src_binary ./vmagent-prod
|
COPY $src_binary ./vmagent-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image=non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
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
|
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
|
ARG TARGETARCH=non-existing
|
||||||
COPY vmagent-linux-${TARGETARCH}-prod ./vmagent-prod
|
COPY vmagent-linux-${TARGETARCH}-prod ./vmagent-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image=non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
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
|
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
|
ARG TARGETARCH=non-existing
|
||||||
COPY vmalert-tool-linux-${TARGETARCH}-prod ./vmalert-tool-prod
|
COPY vmalert-tool-linux-${TARGETARCH}-prod ./vmalert-tool-prod
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
ARG base_image
|
ARG base_image=non-existing
|
||||||
FROM $base_image
|
FROM $base_image
|
||||||
|
|
||||||
EXPOSE 8880
|
EXPOSE 8880
|
||||||
|
|
||||||
ENTRYPOINT ["/vmalert-prod"]
|
ENTRYPOINT ["/vmalert-prod"]
|
||||||
ARG src_binary
|
ARG src_binary=non-existing
|
||||||
COPY $src_binary ./vmalert-prod
|
COPY $src_binary ./vmalert-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image=non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
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
|
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
|
ARG TARGETARCH=non-existing
|
||||||
COPY vmalert-linux-${TARGETARCH}-prod ./vmalert-prod
|
COPY vmalert-linux-${TARGETARCH}-prod ./vmalert-prod
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
ARG base_image
|
ARG base_image=non-existing
|
||||||
FROM $base_image
|
FROM $base_image
|
||||||
|
|
||||||
EXPOSE 8427
|
EXPOSE 8427
|
||||||
|
|
||||||
ENTRYPOINT ["/vmauth-prod"]
|
ENTRYPOINT ["/vmauth-prod"]
|
||||||
ARG src_binary
|
ARG src_binary=non-existing
|
||||||
COPY $src_binary ./vmauth-prod
|
COPY $src_binary ./vmauth-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image=non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
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
|
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
|
ARG TARGETARCH=non-existing
|
||||||
COPY vmauth-linux-${TARGETARCH}-prod ./vmauth-prod
|
COPY vmauth-linux-${TARGETARCH}-prod ./vmauth-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
ARG base_image
|
ARG base_image=non-existing
|
||||||
FROM $base_image
|
FROM $base_image
|
||||||
|
|
||||||
ENTRYPOINT ["/vmbackup-prod"]
|
ENTRYPOINT ["/vmbackup-prod"]
|
||||||
ARG src_binary
|
ARG src_binary=non-existing
|
||||||
COPY $src_binary ./vmbackup-prod
|
COPY $src_binary ./vmbackup-prod
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image=non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
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
|
ARG TARGETARCH=non-existing
|
||||||
COPY vmbackup-linux-${TARGETARCH}-prod ./vmbackup-prod
|
COPY vmbackup-linux-${TARGETARCH}-prod ./vmbackup-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
ARG base_image
|
ARG base_image=non-existing
|
||||||
FROM $base_image
|
FROM $base_image
|
||||||
|
|
||||||
ENTRYPOINT ["/vmctl-prod"]
|
ENTRYPOINT ["/vmctl-prod"]
|
||||||
ARG src_binary
|
ARG src_binary=non-existing
|
||||||
COPY $src_binary ./vmctl-prod
|
COPY $src_binary ./vmctl-prod
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image=non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
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
|
ARG TARGETARCH=non-existing
|
||||||
COPY vmctl-linux-${TARGETARCH}-prod ./vmctl-prod
|
COPY vmctl-linux-${TARGETARCH}-prod ./vmctl-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
ARG base_image
|
ARG base_image=non-existing
|
||||||
FROM $base_image
|
FROM $base_image
|
||||||
|
|
||||||
ENTRYPOINT ["/vmrestore-prod"]
|
ENTRYPOINT ["/vmrestore-prod"]
|
||||||
ARG src_binary
|
ARG src_binary=non-existing
|
||||||
COPY $src_binary ./vmrestore-prod
|
COPY $src_binary ./vmrestore-prod
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image=non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
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
|
ARG TARGETARCH=non-existing
|
||||||
COPY vmrestore-linux-${TARGETARCH}-prod ./vmrestore-prod
|
COPY vmrestore-linux-${TARGETARCH}-prod ./vmrestore-prod
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
||||||
ARG certs_image
|
ARG certs_image=non-existing
|
||||||
ARG root_image
|
ARG root_image==non-existing
|
||||||
FROM $certs_image AS certs
|
FROM $certs_image AS certs
|
||||||
|
|
||||||
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ARG go_builder_image
|
ARG go_builder_image=non-existing
|
||||||
FROM $go_builder_image
|
FROM $go_builder_image
|
||||||
STOPSIGNAL SIGINT
|
STOPSIGNAL SIGINT
|
||||||
RUN apk add git gcc musl-dev make wget --no-cache && \
|
RUN apk add git gcc musl-dev make wget --no-cache && \
|
||||||
|
Loading…
Reference in New Issue
Block a user