From e7827a524953b5c3ee3f2fb3c6f9117bf2f85b9c Mon Sep 17 00:00:00 2001 From: kevgliss Date: Mon, 23 Mar 2020 11:42:05 -0700 Subject: [PATCH] Adds the ability to specify light builds (for scheduler builds) (#143) --- MANIFEST.in | 5 ++++- docker/Dockerfile | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index 73525521e90d..c6245869e75a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,4 @@ -recursive-include src/dispatch * +include setup.py README.md MANIFEST.in LICENSE AUTHORS +recursive-include ./ requirements*.txt +graft src/dispatch +global-exclude *~ diff --git a/docker/Dockerfile b/docker/Dockerfile index 69814dc80870..233aa99399a0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -72,6 +72,11 @@ ENV DISPATCH_BUILD=${SOURCE_COMMIT:-unknown} LABEL org.opencontainers.image.revision=$SOURCE_COMMIT LABEL org.opencontainers.image.licenses="https://github.com/netflix/dispatch/blob/${SOURCE_COMMIT:-master}/LICENSE" +ARG DISPATCH_LIGHT_BUILD +ENV DISPATCH_LIGHT_BUILD=${DISPATCH_LIGHT_BUILD} + +RUN echo "DISPATCH_LIGHT_BUILD=${DISPATCH_LIGHT_BUILD}" + COPY . /usr/src/dispatch/ RUN export YARN_CACHE_FOLDER="$(mktemp -d)" \ && cd /usr/src/dispatch \ @@ -103,6 +108,7 @@ ENV PIP_NO_CACHE_DIR=off \ # Dispatch config params DISPATCH_CONF=/etc/dispatch + COPY --from=sdist /dist/*.whl /tmp/dist/ RUN set -x \ && buildDeps="" \