Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
# limitations under the License.
#

ARG base_image
FROM ${base_image}
FROM spark-base

# Before building the docker image, first build and make a Spark distribution following
# the instructions in http://spark.apache.org/docs/latest/building-spark.html.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
# limitations under the License.
#

ARG base_image
FROM ${base_image}
FROM spark-base

# Before building the docker image, first build and make a Spark distribution following
# the instructions in http://spark.apache.org/docs/latest/building-spark.html.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
# limitations under the License.
#

ARG base_image
FROM ${base_image}
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.:
Expand Down
8 changes: 4 additions & 4 deletions sbin/build-push-docker-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ function image_ref {
}

function build {
local base_image="$(image_ref spark-base 0)"
docker build --build-arg "spark_jars=$SPARK_JARS" \
docker build \
--build-arg "spark_jars=$SPARK_JARS" \
--build-arg "img_path=$IMG_PATH" \
-t "$base_image" \
-t spark-base \
-f "$IMG_PATH/spark-base/Dockerfile" .
for image in "${!path[@]}"; do
docker build --build-arg "base_image=$base_image" -t "$(image_ref $image)" -f ${path[$image]} .
docker build -t "$(image_ref $image)" -f ${path[$image]} .
done
}

Expand Down