Skip to content

Commit

Permalink
More updates to get cluster mode working with 1.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
rf972 committed Feb 10, 2022
1 parent dd6bcc9 commit a8c7b39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions pushdown-datasource/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ if [ ! -f $DIKECLIENTJAR ]; then
fi
cp $DIKECLIENTJAR pushdown-datasource/lib

# Bring in environment including ${ROOT_DIR} etc.
source ../spark/docker/setup.sh

if [ "$#" -gt 0 ]; then
if [ "$1" == "-d" ]; then
shift
Expand All @@ -44,7 +41,7 @@ if [ "$#" -gt 0 ]; then
-v "${ROOT_DIR}/build/.ivy2:${DOCKER_HOME_DIR}/.ivy2" \
-u "${USER_ID}" \
--entrypoint /bin/bash -w /pushdown-datasource/pushdown-datasource\
spark-build-${USER_NAME}
"v${DIKE_VERSION}-spark-build-${USER_NAME}"
fi
else
echo "Building pushdown-datasource"
Expand All @@ -58,5 +55,5 @@ else
-v "${ROOT_DIR}/build/.ivy2:${DOCKER_HOME_DIR}/.ivy2" \
-u "${USER_ID}" \
--entrypoint /pushdown-datasource/scripts/build.sh -w /pushdown-datasource/pushdown-datasource \
spark-build-${USER_NAME}
"v${DIKE_VERSION}-spark-build-${USER_NAME}"
fi
2 changes: 1 addition & 1 deletion spark/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fi
echo "User id is: $USER_ID"
echo "Group id is: $GROUP_ID"

docker build -f Dockerfile --target v${DIKE_VERSION}_builder --build_arg SPARK_VERSION=$SPARK_VERSION -t v${DIKE_VERSION}_spark_build .
docker build -f Dockerfile --target v${DIKE_VERSION}_builder --build-arg SPARK_VERSION=$SPARK_VERSION -t v${DIKE_VERSION}_spark_build .
echo "Done building v${DIKE_VERSION}_spark_build docker"

docker build -f Dockerfile --build-arg SPARK_VERSION=$SPARK_VERSION -t v${DIKE_VERSION}_spark_run .
Expand Down

0 comments on commit a8c7b39

Please sign in to comment.