Skip to content

Commit e7827a5

Browse files
authored
Adds the ability to specify light builds (for scheduler builds) (Netflix#143)
1 parent 4057b8e commit e7827a5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

MANIFEST.in

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
recursive-include src/dispatch *
1+
include setup.py README.md MANIFEST.in LICENSE AUTHORS
2+
recursive-include ./ requirements*.txt
3+
graft src/dispatch
4+
global-exclude *~

docker/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ ENV DISPATCH_BUILD=${SOURCE_COMMIT:-unknown}
7272
LABEL org.opencontainers.image.revision=$SOURCE_COMMIT
7373
LABEL org.opencontainers.image.licenses="https://github.com/netflix/dispatch/blob/${SOURCE_COMMIT:-master}/LICENSE"
7474

75+
ARG DISPATCH_LIGHT_BUILD
76+
ENV DISPATCH_LIGHT_BUILD=${DISPATCH_LIGHT_BUILD}
77+
78+
RUN echo "DISPATCH_LIGHT_BUILD=${DISPATCH_LIGHT_BUILD}"
79+
7580
COPY . /usr/src/dispatch/
7681
RUN export YARN_CACHE_FOLDER="$(mktemp -d)" \
7782
&& cd /usr/src/dispatch \
@@ -103,6 +108,7 @@ ENV PIP_NO_CACHE_DIR=off \
103108
# Dispatch config params
104109
DISPATCH_CONF=/etc/dispatch
105110

111+
106112
COPY --from=sdist /dist/*.whl /tmp/dist/
107113
RUN set -x \
108114
&& buildDeps="" \

0 commit comments

Comments
 (0)