File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -168,12 +168,18 @@ echo "Build flags: $@" >> "$DISTDIR/RELEASE"
168168# Copy jars
169169cp " $SPARK_HOME " /assembly/target/scala* /jars/* " $DISTDIR /jars/"
170170
171- # Only create the yarn directory if the yarn artifacts were build .
171+ # Only create the yarn directory if the yarn artifacts were built .
172172if [ -f " $SPARK_HOME " /common/network-yarn/target/scala* /spark-* -yarn-shuffle.jar ]; then
173173 mkdir " $DISTDIR /yarn"
174174 cp " $SPARK_HOME " /common/network-yarn/target/scala* /spark-* -yarn-shuffle.jar " $DISTDIR /yarn"
175175fi
176176
177+ # Only create and copy the dockerfiles directory if the kubernetes artifacts were built.
178+ if [ -d " $SPARK_HOME " /resource-managers/kubernetes/core/target/ ]; then
179+ mkdir -p " $DISTDIR /kubernetes/"
180+ cp -a " $SPARK_HOME " /resource-managers/kubernetes/docker/src/main/dockerfiles " $DISTDIR /kubernetes/"
181+ fi
182+
177183# Copy examples and dependencies
178184mkdir -p " $DISTDIR /examples/jars"
179185cp " $SPARK_HOME " /examples/target/scala* /jars/* " $DISTDIR /examples/jars"
You can’t perform that action at this time.
0 commit comments