You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN cargo chef cook $RELEASE_FLAG --recipe-path recipe.json
46
+
47
+
FROM base as builder
48
+
RUN mkdir /tmp/ballista/ballista
49
+
RUN mkdir /tmp/ballista/benchmarks
50
+
RUN mkdir /tmp/ballista/datafusion
51
+
RUN mkdir /tmp/ballista/datafusion-cli
52
+
RUN mkdir /tmp/ballista/datafusion-examples
53
+
ADD Cargo.toml .
54
+
COPY benchmarks ./benchmarks/
55
+
COPY datafusion ./datafusion/
56
+
COPY ballista ./ballista/
57
+
COPY datafusion-cli ./datafusion-cli/
58
+
COPY datafusion-examples ./datafusion-examples/
59
+
COPY --from=cacher /tmp/ballista/target target
60
+
ARG RELEASE_FLAG=--release
61
+
62
+
# force build.rs to run to generate configure_me code.
63
+
ENV FORCE_REBUILD='true'
64
+
RUN cargo build $RELEASE_FLAG
65
+
66
+
# put the executor on /executor (need to be copied from different places depending on FLAG)
67
+
ENV RELEASE_FLAG=${RELEASE_FLAG}
68
+
RUN if [ -z "$RELEASE_FLAG" ]; then mv /tmp/ballista/target/debug/ballista-executor /executor; else mv /tmp/ballista/target/release/ballista-executor /executor; fi
69
+
70
+
# put the scheduler on /scheduler (need to be copied from different places depending on FLAG)
71
+
ENV RELEASE_FLAG=${RELEASE_FLAG}
72
+
RUN if [ -z "$RELEASE_FLAG" ]; then mv /tmp/ballista/target/debug/ballista-scheduler /scheduler; else mv /tmp/ballista/target/release/ballista-scheduler /scheduler; fi
73
+
74
+
# put the tpch on /tpch (need to be copied from different places depending on FLAG)
75
+
ENV RELEASE_FLAG=${RELEASE_FLAG}
76
+
RUN if [ -z "$RELEASE_FLAG" ]; then mv /tmp/ballista/target/debug/tpch /tpch; else mv /tmp/ballista/target/release/tpch /tpch; fi
77
+
78
+
# Copy the binary into a new container for a smaller docker image
0 commit comments