Skip to content

Commit

Permalink
Fix ui.sh, add missing mounts.txt (#614)
Browse files Browse the repository at this point in the history
* Fix ui.sh, add missing mounts.txt
* mounts.txt for uig.sh, drop no longer needed LD_LIBRARY_PATH
  • Loading branch information
nepal authored Dec 21, 2023
1 parent 037dc17 commit 3afc4b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ydb/library/yql/tools/yqlrun/mounts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MountPoints {
MountPoint: "../../mount/lib"
RootAlias: "/lib"
Library: true
}
2 changes: 1 addition & 1 deletion ydb/library/yql/tools/yqlrun/ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#

SCRIPT_DIR="$(dirname $(readlink -f "$0"))"
UDFS_DIR="${SCRIPT_DIR}/../../udfs;${SCRIPT_DIR}/../../../../../yql/udfs"
UDFS_DIR="${SCRIPT_DIR}/../../udfs;${SCRIPT_DIR}/../../../../../../yql/udfs"
ASSETS_DIR=${SCRIPT_DIR}/http/www
MOUNTS_CFG=${SCRIPT_DIR}/mounts.txt
GATEWAYS_CFG=${SCRIPT_DIR}/../../cfg/tests/gateways.conf
Expand Down
3 changes: 2 additions & 1 deletion ydb/library/yql/tools/yqlrun/uig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
SCRIPT_DIR="$(dirname $(readlink -f "$0"))"
UDFS_DIR="${SCRIPT_DIR}/../../udfs"
ASSETS_DIR=${SCRIPT_DIR}/http/www
MOUNTS_CFG=${SCRIPT_DIR}/mounts.txt
GATEWAYS_CFG=${SCRIPT_DIR}/../../cfg/tests/gateways.conf

PORT=${1:-3000}
Expand All @@ -18,8 +19,8 @@ if [ "$2" = "--gdb" ]; then
GDB="yag tool gdb --args"
fi

export LD_LIBRARY_PATH=.
${GDB} ${SCRIPT_DIR}/yqlrun ui \
--mounts ${MOUNTS_CFG} \
--udfs-dir ${UDFS_DIR} \
--assets ${ASSETS_DIR} \
--gateways-cfg ${GATEWAYS_CFG} \
Expand Down

0 comments on commit 3afc4b1

Please sign in to comment.