File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
resource-managers/kubernetes/integration-tests/scripts Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 72
72
IMAGE_TAG=$( uuidgen) ;
73
73
cd $UNPACKED_SPARK_TGZ
74
74
75
+ # Build PySpark image
76
+ LANGUAGE_BINDING_BUILD_ARGS=" -p $UNPACKED_SPARK_TGZ /kubernetes/dockerfiles/spark/bindings/python/Dockerfile"
77
+
78
+ # Build SparkR image
79
+ LANGUAGE_BINDING_BUILD_ARGS=" $LANGUAGE_BINDING_BUILD_ARGS -R $UNPACKED_SPARK_TGZ /kubernetes/dockerfiles/spark/bindings/R/Dockerfile"
80
+
75
81
case $DEPLOY_MODE in
76
82
cloud)
77
83
# Build images
78
- $UNPACKED_SPARK_TGZ /bin/docker-image-tool.sh -r $IMAGE_REPO -t $IMAGE_TAG build
84
+ $UNPACKED_SPARK_TGZ /bin/docker-image-tool.sh -r $IMAGE_REPO -t $IMAGE_TAG $LANGUAGE_BINDING_BUILD_ARGS build
79
85
80
86
# Push images appropriately
81
87
if [[ $IMAGE_REPO == gcr.io* ]] ;
89
95
docker-for-desktop)
90
96
# Only need to build as this will place it in our local Docker repo which is all
91
97
# we need for Docker for Desktop to work so no need to also push
92
- $UNPACKED_SPARK_TGZ /bin/docker-image-tool.sh -r $IMAGE_REPO -t $IMAGE_TAG build
98
+ $UNPACKED_SPARK_TGZ /bin/docker-image-tool.sh -r $IMAGE_REPO -t $IMAGE_TAG $LANGUAGE_BINDING_BUILD_ARGS build
93
99
;;
94
100
95
101
minikube)
96
102
# Only need to build and if we do this with the -m option for minikube we will
97
103
# build the images directly using the minikube Docker daemon so no need to push
98
- $UNPACKED_SPARK_TGZ /bin/docker-image-tool.sh -m -r $IMAGE_REPO -t $IMAGE_TAG build
104
+ $UNPACKED_SPARK_TGZ /bin/docker-image-tool.sh -m -r $IMAGE_REPO -t $IMAGE_TAG $LANGUAGE_BINDING_BUILD_ARGS build
99
105
;;
100
106
* )
101
107
echo " Unrecognized deploy mode $DEPLOY_MODE " && exit 1
You can’t perform that action at this time.
0 commit comments