File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
resource-managers/kubernetes/docker-minimal-bundle/src/main/docker Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,13 @@ echo "Build flags: $@" >> "$DISTDIR/RELEASE"
182182# Copy jars
183183cp " $SPARK_HOME " /assembly/target/scala* /jars/* " $DISTDIR /jars/"
184184
185+ # Copy docker files
186+ mkdir -p " $DISTDIR /dockerfiles/driver"
187+ mkdir -p " $DISTDIR /dockerfiles/executor"
188+ DOCKERFILES_SRC=" $SPARK_HOME /resource-managers/kubernetes/docker-minimal-bundle/src/main/docker"
189+ cp " $DOCKERFILES_SRC /driver/Dockerfile" " $DISTDIR /dockerfiles/driver/Dockerfile"
190+ cp " $DOCKERFILES_SRC /executor/Dockerfile" " $DISTDIR /dockerfiles/executor/Dockerfile"
191+
185192# Only create the yarn directory if the yarn artifacts were build.
186193if [ -f " $SPARK_HOME " /common/network-yarn/target/scala* /spark-* -yarn-shuffle.jar ]; then
187194 mkdir " $DISTDIR " /yarn
Original file line number Diff line number Diff line change 11FROM anapsix/alpine-java:8
22
3+ # If this docker file is being used in the context of building your images from a Spark distribution, the docker build
4+ # command should be invoked from the top level directory of the Spark distribution. E.g.:
5+ # docker build -t spark-driver:latest -f dockerfiles/driver/Dockerfile .
6+
37RUN mkdir -p /opt/spark
4- RUN mkdir -p /opt/spark/ui-resources/org/apache/spark/ui/static
58RUN touch /opt/spark/RELEASE
69
710ADD jars /opt/spark/jars
Original file line number Diff line number Diff line change 11FROM anapsix/alpine-java:8
22
3+ # If this docker file is being used in the context of building your images from a Spark distribution, the docker build
4+ # command should be invoked from the top level directory of the Spark distribution. E.g.:
5+ # docker build -t spark-executor:latest -f dockerfiles/executor/Dockerfile .
6+
37RUN mkdir -p /opt/spark
4- RUN mkdir -p /opt/spark/ui-resources/org/apache/spark/ui/static
58RUN touch /opt/spark/RELEASE
69
710ADD jars /opt/spark/jars
You can’t perform that action at this time.
0 commit comments