diff --git a/app/victoria-logs/deployment/Dockerfile b/app/victoria-logs/deployment/Dockerfile index a768296b7..f1de0c39b 100644 --- a/app/victoria-logs/deployment/Dockerfile +++ b/app/victoria-logs/deployment/Dockerfile @@ -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 diff --git a/app/victoria-logs/multiarch/Dockerfile b/app/victoria-logs/multiarch/Dockerfile index cb63c1ee8..1ff166ea0 100644 --- a/app/victoria-logs/multiarch/Dockerfile +++ b/app/victoria-logs/multiarch/Dockerfile @@ -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 diff --git a/app/victoria-metrics/deployment/Dockerfile b/app/victoria-metrics/deployment/Dockerfile index 7c658d99b..240d239db 100644 --- a/app/victoria-metrics/deployment/Dockerfile +++ b/app/victoria-metrics/deployment/Dockerfile @@ -1,8 +1,8 @@ -ARG base_image +ARG base_image=non-existing FROM $base_image EXPOSE 8428 ENTRYPOINT ["/victoria-metrics-prod"] -ARG src_binary +ARG src_binary=non-existing COPY $src_binary ./victoria-metrics-prod diff --git a/app/victoria-metrics/multiarch/Dockerfile b/app/victoria-metrics/multiarch/Dockerfile index d14169665..8eb1e142b 100644 --- a/app/victoria-metrics/multiarch/Dockerfile +++ b/app/victoria-metrics/multiarch/Dockerfile @@ -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 8428 ENTRYPOINT ["/victoria-metrics-prod"] -ARG TARGETARCH +ARG TARGETARCH=non-existing COPY victoria-metrics-linux-${TARGETARCH}-prod ./victoria-metrics-prod diff --git a/app/vmagent/deployment/Dockerfile b/app/vmagent/deployment/Dockerfile index 4d8ecb542..73ecfaf24 100644 --- a/app/vmagent/deployment/Dockerfile +++ b/app/vmagent/deployment/Dockerfile @@ -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 diff --git a/app/vmagent/multiarch/Dockerfile b/app/vmagent/multiarch/Dockerfile index 7db8037a6..9e8f7a3fd 100644 --- a/app/vmagent/multiarch/Dockerfile +++ b/app/vmagent/multiarch/Dockerfile @@ -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 diff --git a/app/vmalert-tool/multiarch/Dockerfile b/app/vmalert-tool/multiarch/Dockerfile index ef1635ec7..e02dd73cf 100644 --- a/app/vmalert-tool/multiarch/Dockerfile +++ b/app/vmalert-tool/multiarch/Dockerfile @@ -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 diff --git a/app/vmalert/deployment/Dockerfile b/app/vmalert/deployment/Dockerfile index db2a365ab..8d26b2b23 100644 --- a/app/vmalert/deployment/Dockerfile +++ b/app/vmalert/deployment/Dockerfile @@ -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 diff --git a/app/vmalert/multiarch/Dockerfile b/app/vmalert/multiarch/Dockerfile index e2f272391..a376156b3 100644 --- a/app/vmalert/multiarch/Dockerfile +++ b/app/vmalert/multiarch/Dockerfile @@ -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 diff --git a/app/vmauth/deployment/Dockerfile b/app/vmauth/deployment/Dockerfile index 1bd6465d9..090b9c4f7 100644 --- a/app/vmauth/deployment/Dockerfile +++ b/app/vmauth/deployment/Dockerfile @@ -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 diff --git a/app/vmauth/multiarch/Dockerfile b/app/vmauth/multiarch/Dockerfile index 61322beec..9dea6e320 100644 --- a/app/vmauth/multiarch/Dockerfile +++ b/app/vmauth/multiarch/Dockerfile @@ -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 diff --git a/app/vmbackup/deployment/Dockerfile b/app/vmbackup/deployment/Dockerfile index 5d2978db9..9ce7783ec 100644 --- a/app/vmbackup/deployment/Dockerfile +++ b/app/vmbackup/deployment/Dockerfile @@ -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 diff --git a/app/vmbackup/multiarch/Dockerfile b/app/vmbackup/multiarch/Dockerfile index 157333d36..aac0da170 100644 --- a/app/vmbackup/multiarch/Dockerfile +++ b/app/vmbackup/multiarch/Dockerfile @@ -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 diff --git a/app/vmctl/deployment/Dockerfile b/app/vmctl/deployment/Dockerfile index 27b442b01..8134c69f3 100644 --- a/app/vmctl/deployment/Dockerfile +++ b/app/vmctl/deployment/Dockerfile @@ -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 diff --git a/app/vmctl/multiarch/Dockerfile b/app/vmctl/multiarch/Dockerfile index ac0963199..48898ee37 100644 --- a/app/vmctl/multiarch/Dockerfile +++ b/app/vmctl/multiarch/Dockerfile @@ -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 diff --git a/app/vmrestore/deployment/Dockerfile b/app/vmrestore/deployment/Dockerfile index dd4dede8d..408fe8576 100644 --- a/app/vmrestore/deployment/Dockerfile +++ b/app/vmrestore/deployment/Dockerfile @@ -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 diff --git a/app/vmrestore/multiarch/Dockerfile b/app/vmrestore/multiarch/Dockerfile index 108274007..a95249d10 100644 --- a/app/vmrestore/multiarch/Dockerfile +++ b/app/vmrestore/multiarch/Dockerfile @@ -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 diff --git a/deployment/docker/base/Dockerfile b/deployment/docker/base/Dockerfile index 7cadd9e25..16f42fd77 100644 --- a/deployment/docker/base/Dockerfile +++ b/deployment/docker/base/Dockerfile @@ -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 diff --git a/deployment/docker/builder/Dockerfile b/deployment/docker/builder/Dockerfile index 20543b7d5..4e0999069 100644 --- a/deployment/docker/builder/Dockerfile +++ b/deployment/docker/builder/Dockerfile @@ -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 && \