diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2024-09-30 15:34:11 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2024-09-30 15:34:11 +0200 |
commit | 3b815e8f6989d64ce1facaa24dd0f94c585b819d (patch) | |
tree | 48943e52d37bdb89b313dc6ba5320eb7c19ef140 /scripts/poe-tasks/run | |
parent | fixup! defer: add request and idle timeouts, limit on waiting queries (diff) | |
parent | Merge branch 'python-constants-module' into 'master' (diff) | |
download | knot-resolver-3b815e8f6989d64ce1facaa24dd0f94c585b819d.tar.xz knot-resolver-3b815e8f6989d64ce1facaa24dd0f94c585b819d.zip |
Merge branch 'master' into rrl-wip
Diffstat (limited to 'scripts/poe-tasks/run')
-rwxr-xr-x | scripts/poe-tasks/run | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/scripts/poe-tasks/run b/scripts/poe-tasks/run new file mode 100755 index 00000000..4d3ebc8c --- /dev/null +++ b/scripts/poe-tasks/run @@ -0,0 +1,35 @@ +#!/usr/bin/env bash + +# ensure consistent behaviour +src_dir="$(dirname "$(realpath "$0")")" +source $src_dir/utils/_env.sh + +echo +ninja_dev_install +echo + +echo ------------------------------------ +echo Creating missing runtime directories +echo ------------------------------------ +mkdir -vp $KRES_DEV_INSTALL_DIR/run/knot-resolver $KRES_DEV_INSTALL_DIR/var/cache/knot-resolver +echo +echo --------------------------------------- +echo Building Python komponents using Poetry +echo --------------------------------------- +poetry build +# copy native modules from build directory to source directory +shopt -s globstar +shopt -s nullglob +for d in build/lib*; do + for f in "python/$d/"**/*.so; do + cp -v "$f" ${f#"python/$d/"} + done +done +shopt -u globstar +shopt -u nullglob + +echo +echo -------------------------------------- +echo Starting Knot Resolver wit the Manager +echo -------------------------------------- +python3 -m knot_resolver.manager --config "$KRES_DEV_CONFIG_FILE" "$@" |