Skip to content
Closed
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 @@ -25,6 +25,7 @@ IMAGE_REPO="docker.io/kubespark"
IMAGE_TAG="N/A"
JAVA_IMAGE_TAG="8-jre-slim"
SPARK_TGZ="N/A"
MVN="$TEST_ROOT_DIR/build/mvn"

# Parse arguments
while (( "$#" )); do
Expand Down Expand Up @@ -84,7 +85,11 @@ fi
# If there is a specific Spark image skip building and extraction/copy
if [[ $IMAGE_TAG == "N/A" ]];
then
IMAGE_TAG=$(uuidgen);
VERSION=$("$MVN" help:evaluate -Dexpression=project.version \
| grep -v "INFO"\
| grep -v "WARNING"\
| tail -n 1)
IMAGE_TAG=${VERSION}_$(uuidgen)
cd $SPARK_INPUT_DIR

# OpenJDK base-image tag (e.g. 8-jre-slim, 11-jre-slim)
Expand Down