Skip to content

Commit

Permalink
change warn and mkdir docker jar folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-rcheng committed Sep 28, 2022
1 parent ab1153c commit 3be4ca6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/build_apache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ popd
# get built image name
# only match the first line
SNOWFLAKE_PLUGIN_NAME=$(ls $SNOWFLAKE_PLUGIN_PATH | grep "$SNOWFLAKE_PLUGIN_NAME_REGEX" | head -n 1)
echo -e "\n========================= BUILD COMPLETE ========================="
echo -e "built connector name: $SNOWFLAKE_PLUGIN_NAME"
echo -e "\nbuilt connector name: $SNOWFLAKE_PLUGIN_NAME"

# copy built connector to plugin path
mkdir -m 777 -p $KAFKA_CONNECT_PLUGIN_PATH || \
Expand All @@ -91,7 +90,10 @@ cp $SNOWFLAKE_PLUGIN_PATH/$SNOWFLAKE_PLUGIN_NAME $KAFKA_CONNECT_PLUGIN_PATH || t
echo -e "copied connector to $KAFKA_CONNECT_PLUGIN_PATH"

KAFKA_CONNECT_DOCKER_JAR_PATH="$SNOWFLAKE_CONNECTOR_PATH/docker-setup/snowflake-kafka-docker/jars"
mv $SNOWFLAKE_PLUGIN_PATH/$SNOWFLAKE_PLUGIN_NAME $KAFKA_CONNECT_DOCKER_JAR_PATH || true
mkdir -m 777 -p $KAFKA_CONNECT_DOCKER_JAR_PATH
cp $SNOWFLAKE_PLUGIN_PATH/$SNOWFLAKE_PLUGIN_NAME $KAFKA_CONNECT_DOCKER_JAR_PATH || true
echo -e "copied connector to $KAFKA_CONNECT_DOCKER_JAR_PATH for docker"

echo -e "=== NOTE: do not share this privately built jar with customers ===\n"
echo -e "\n===================================== WARNING ====================================="
echo -e "not recommended to share this jar with customer unless necessary (PrPr feature, etc)"
echo -e "absolutely do not let the customer run this jar on their production environment\n"

0 comments on commit 3be4ca6

Please sign in to comment.