Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit 2b1a99d

Browse files
mccheahfoxish
authored andcommitted
Copy the Dockerfiles from docker-minimal-bundle into the distribution. (#12)
1 parent 793143d commit 2b1a99d

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

dev/make-distribution.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,13 @@ echo "Build flags: $@" >> "$DISTDIR/RELEASE"
168168
# Copy jars
169169
cp "$SPARK_HOME"/assembly/target/scala*/jars/* "$DISTDIR/jars/"
170170

171+
# Copy docker files
172+
mkdir -p "$DISTDIR/dockerfiles/driver"
173+
mkdir -p "$DISTDIR/dockerfiles/executor"
174+
DOCKERFILES_SRC="$SPARK_HOME/resource-managers/kubernetes/docker-minimal-bundle/src/main/docker"
175+
cp "$DOCKERFILES_SRC/driver/Dockerfile" "$DISTDIR/dockerfiles/driver/Dockerfile"
176+
cp "$DOCKERFILES_SRC/executor/Dockerfile" "$DISTDIR/dockerfiles/executor/Dockerfile"
177+
171178
# Only create the yarn directory if the yarn artifacts were build.
172179
if [ -f "$SPARK_HOME"/common/network-yarn/target/scala*/spark-*-yarn-shuffle.jar ]; then
173180
mkdir "$DISTDIR/yarn"

resource-managers/kubernetes/docker-minimal-bundle/src/main/docker/driver/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
FROM 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+
37
RUN mkdir -p /opt/spark
4-
RUN mkdir -p /opt/spark/ui-resources/org/apache/spark/ui/static
58
RUN touch /opt/spark/RELEASE
69

710
ADD jars /opt/spark/jars

resource-managers/kubernetes/docker-minimal-bundle/src/main/docker/executor/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
FROM 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+
37
RUN mkdir -p /opt/spark
4-
RUN mkdir -p /opt/spark/ui-resources/org/apache/spark/ui/static
58
RUN touch /opt/spark/RELEASE
69

710
ADD jars /opt/spark/jars

0 commit comments

Comments
 (0)