This repository was archived by the owner on Jan 9, 2020. It is now read-only.
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 @@ -175,6 +175,13 @@ echo "Build flags: $@" >> "$DISTDIR/RELEASE"
175
175
# Copy jars
176
176
cp " $SPARK_HOME " /assembly/target/scala* /jars/* " $DISTDIR /jars/"
177
177
178
+ # Copy docker files
179
+ mkdir -p " $DISTDIR /dockerfiles/driver"
180
+ mkdir -p " $DISTDIR /dockerfiles/executor"
181
+ DOCKERFILES_SRC=" $SPARK_HOME /resource-managers/kubernetes/docker-minimal-bundle/src/main/docker"
182
+ cp " $DOCKERFILES_SRC /driver/Dockerfile" " $DISTDIR /dockerfiles/driver/Dockerfile"
183
+ cp " $DOCKERFILES_SRC /executor/Dockerfile" " $DISTDIR /dockerfiles/executor/Dockerfile"
184
+
178
185
# Only create the yarn directory if the yarn artifacts were build.
179
186
if [ -f " $SPARK_HOME " /common/network-yarn/target/scala* /spark-* -yarn-shuffle.jar ]; then
180
187
mkdir " $DISTDIR " /yarn
Original file line number Diff line number Diff line change 1
1
FROM anapsix/alpine-java:8
2
2
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
+
3
7
RUN mkdir -p /opt/spark
4
- RUN mkdir -p /opt/spark/ui-resources/org/apache/spark/ui/static
5
8
RUN touch /opt/spark/RELEASE
6
9
7
10
ADD jars /opt/spark/jars
Original file line number Diff line number Diff line change 1
1
FROM anapsix/alpine-java:8
2
2
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
+
3
7
RUN mkdir -p /opt/spark
4
- RUN mkdir -p /opt/spark/ui-resources/org/apache/spark/ui/static
5
8
RUN touch /opt/spark/RELEASE
6
9
7
10
ADD jars /opt/spark/jars
You can’t perform that action at this time.
0 commit comments