Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
[SPARK-22866][K8S] Fix path issue in Kubernetes dockerfile
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

The path was recently changed in apache#19946, but the dockerfile was not updated.
This is a trivial 1 line fix.

## How was this patch tested?

`./sbin/build-push-docker-images.sh -r spark-repo -t latest build`

cc/ vanzin mridulm rxin jiangxb1987 liyinan926

Author: Anirudh Ramanathan <ramanathana@google.com>
Author: foxish <ramanathana@google.com>

Closes apache#20051 from foxish/patch-1.
  • Loading branch information
foxish authored and mridulm committed Dec 22, 2017
1 parent a36b78b commit 22e1849
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ FROM spark-base
# If this docker file is being used in the context of building your images from a Spark
# distribution, the docker build command should be invoked from the top level directory
# of the Spark distribution. E.g.:
# docker build -t spark-driver:latest -f dockerfiles/spark-base/Dockerfile .
# docker build -t spark-driver:latest -f kubernetes/dockerfiles/spark-base/Dockerfile .

COPY examples /opt/spark/examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ FROM spark-base
# If this docker file is being used in the context of building your images from a Spark
# distribution, the docker build command should be invoked from the top level directory
# of the Spark distribution. E.g.:
# docker build -t spark-executor:latest -f dockerfiles/spark-base/Dockerfile .
# docker build -t spark-executor:latest -f kubernetes/dockerfiles/spark-base/Dockerfile .

COPY examples /opt/spark/examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ FROM openjdk:8-alpine
# If this docker file is being used in the context of building your images from a Spark
# distribution, the docker build command should be invoked from the top level directory
# of the Spark distribution. E.g.:
# docker build -t spark-base:latest -f dockerfiles/spark-base/Dockerfile .
# docker build -t spark-base:latest -f kubernetes/dockerfiles/spark-base/Dockerfile .

RUN set -ex && \
apk upgrade --no-cache && \
Expand All @@ -38,7 +38,7 @@ COPY jars /opt/spark/jars
COPY bin /opt/spark/bin
COPY sbin /opt/spark/sbin
COPY conf /opt/spark/conf
COPY dockerfiles/spark-base/entrypoint.sh /opt/
COPY kubernetes/dockerfiles/spark-base/entrypoint.sh /opt/

ENV SPARK_HOME /opt/spark

Expand Down

0 comments on commit 22e1849

Please sign in to comment.