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

Commit a736e7a

Browse files
mccheahash211
authored andcommitted
Copy the Dockerfiles from docker-minimal-bundle into the distribution. (#12)
1 parent 3085d94 commit a736e7a

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
@@ -175,6 +175,13 @@ echo "Build flags: $@" >> "$DISTDIR/RELEASE"
175175
# Copy jars
176176
cp "$SPARK_HOME"/assembly/target/scala*/jars/* "$DISTDIR/jars/"
177177

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+
178185
# Only create the yarn directory if the yarn artifacts were build.
179186
if [ -f "$SPARK_HOME"/common/network-yarn/target/scala*/spark-*-yarn-shuffle.jar ]; then
180187
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)