From: Peter van Dijk Date: Mon, 27 May 2019 11:11:59 +0000 (+0200) Subject: builder: error out when no valid modules are specified X-Git-Tag: dnsdist-1.4.0-beta1~26^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10107cf8cb6f8417fb8c74032d08000ec0587cdd;p=pdns builder: error out when no valid modules are specified --- diff --git a/builder-support/dockerfiles/Dockerfile.target.sdist b/builder-support/dockerfiles/Dockerfile.target.sdist index 81760329a..57c09725c 100644 --- a/builder-support/dockerfiles/Dockerfile.target.sdist +++ b/builder-support/dockerfiles/Dockerfile.target.sdist @@ -13,6 +13,10 @@ FROM alpine:3.6 as sdist ARG BUILDER_CACHE_BUSTER= +@IF [ -z "$M_all$M_authoritative$M_recursor$M_dnsdist"] +RUN echo "no valid modules specified!" ; exit 1 +@ENDIF + @IF [ ! -z "$M_authoritative$M_all" ] COPY --from=pdns-authoritative /sdist/ /sdist/ @ENDIF