Gallardot commented on code in PR #16128:
URL: 
https://github.com/apache/dolphinscheduler/pull/16128#discussion_r1634384738


##########
dolphinscheduler-dist/src/main/assembly/create-symlinks.sh:
##########
@@ -0,0 +1,38 @@
+#!/bin/bash
+script_dir=`dirname $0`
+cd $script_dir/../../../target
+package_file=`ls apache-dolphinscheduler-*-bin.tar.gz`
+echo $package_file
+decompress_dirname="${package_file%.tar.gz}"
+rm -rf $decompress_dirname
+#Decompress package file
+tar -xf $package_file
+cd $decompress_dirname
+
+SHARED_LIB_DIR="libs"
+# create share lib directory
+mkdir -p $SHARED_LIB_DIR
+
+echo 'iterate through the lib directory for all subprojects'
+for module in api-server master-server worker-server alert-server tools; do
+  MODULE_LIB_DIR="$module/libs"
+  echo "handling $MODULE_LIB_DIR"
+
+  if [ -d "$MODULE_LIB_DIR" ]; then
+    cd $MODULE_LIB_DIR
+
+    for jar in `ls *.jar`; do
+      # Move jar file to share lib directory
+      mv $jar ../../$SHARED_LIB_DIR/
+
+      # Create a symbolic link in the subproject's lib directory
+      ln -s ../../$SHARED_LIB_DIR/$jar .

Review Comment:
   If this script is just used for publishing binary packages, it will not 
impact the deployment of k8s.  During the Docker image build process, the 
contents of the `target` directory for each module are directly copied. 
@SbloodyS 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to