File tree Expand file tree Collapse file tree 4 files changed +7
-10
lines changed
resource-managers/kubernetes/docker/src/main/dockerfiles Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
#
17
17
18
- ARG base_image
19
- FROM ${base_image}
18
+ FROM spark-base
20
19
21
20
# Before building the docker image, first build and make a Spark distribution following
22
21
# the instructions in http://spark.apache.org/docs/latest/building-spark.html.
Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
#
17
17
18
- ARG base_image
19
- FROM ${base_image}
18
+ FROM spark-base
20
19
21
20
# Before building the docker image, first build and make a Spark distribution following
22
21
# the instructions in http://spark.apache.org/docs/latest/building-spark.html.
Original file line number Diff line number Diff line change 15
15
# limitations under the License.
16
16
#
17
17
18
- ARG base_image
19
- FROM ${base_image}
18
+ FROM spark-base
20
19
21
20
# If this docker file is being used in the context of building your images from a Spark distribution, the docker build
22
21
# command should be invoked from the top level directory of the Spark distribution. E.g.:
Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ function image_ref {
60
60
}
61
61
62
62
function build {
63
- local base_image= " $( image_ref spark-base 0 ) "
64
- docker build --build-arg " spark_jars=$SPARK_JARS " \
63
+ docker build \
64
+ --build-arg " spark_jars=$SPARK_JARS " \
65
65
--build-arg " img_path=$IMG_PATH " \
66
- -t " $base_image " \
66
+ -t spark-base \
67
67
-f " $IMG_PATH /spark-base/Dockerfile" .
68
68
for image in " ${! path[@]} " ; do
69
- docker build --build-arg " base_image= $base_image " - t " $( image_ref $image ) " -f ${path[$image]} .
69
+ docker build -t " $( image_ref $image ) " -f ${path[$image]} .
70
70
done
71
71
}
72
72
You can’t perform that action at this time.
0 commit comments