File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -132,11 +132,6 @@ function build {
132
132
SPARK_ROOT=" $CTX_DIR /base"
133
133
fi
134
134
135
- # If a custom SPARK_UID was set add it to build arguments
136
- if [ -n " $SPARK_UID " ]; then
137
- BUILD_ARGS+=(--build-arg spark_uid=$SPARK_UID )
138
- fi
139
-
140
135
# Verify that the Docker image content directory is present
141
136
if [ ! -d " $SPARK_ROOT /kubernetes/dockerfiles" ]; then
142
137
error " Cannot find docker image. This script must be run from a runnable distribution of Apache Spark."
@@ -151,6 +146,12 @@ function build {
151
146
fi
152
147
153
148
local BUILD_ARGS=(${BUILD_PARAMS} )
149
+
150
+ # If a custom SPARK_UID was set add it to build arguments
151
+ if [ -n " $SPARK_UID " ]; then
152
+ BUILD_ARGS+=(--build-arg spark_uid=$SPARK_UID )
153
+ fi
154
+
154
155
local BINDING_BUILD_ARGS=(
155
156
${BUILD_PARAMS}
156
157
--build-arg
You can’t perform that action at this time.
0 commit comments