Skip to content

Commit a7e0c4c

Browse files
committed
Update the image building script
1 parent 67abb93 commit a7e0c4c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sbin/build-push-docker-images.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
# This script builds and pushes docker images when run from a release of Spark
2020
# with Kubernetes support.
2121

22-
declare -A path=( [spark-driver]=dockerfiles/driver/Dockerfile \
23-
[spark-executor]=dockerfiles/executor/Dockerfile )
22+
declare -A path=( [spark-driver]=kubernetes/dockerfiles/driver/Dockerfile \
23+
[spark-executor]=kubernetes/dockerfiles/executor/Dockerfile )
2424

2525
function build {
26-
docker build -t spark-base -f dockerfiles/spark-base/Dockerfile .
26+
docker build -t spark-base -f kubernetes/dockerfiles/spark-base/Dockerfile .
2727
for image in "${!path[@]}"; do
2828
docker build -t ${REPO}/$image:${TAG} -f ${path[$image]} .
2929
done
@@ -37,6 +37,7 @@ function push {
3737
}
3838

3939
function usage {
40+
echo "This script must be run from a runnable distribution of Apache Spark."
4041
echo "Usage: ./sbin/build-push-docker-images.sh -r <repo> -t <tag> build"
4142
echo " ./sbin/build-push-docker-images.sh -r <repo> -t <tag> push"
4243
echo "for example: ./sbin/build-push-docker-images.sh -r docker.io/myrepo -t v2.3.0 push"

0 commit comments

Comments
 (0)