Revision ad60b8242277e2af3b2aa21af38dce61d2e562b8 authored by Maria Khrustaleva on 12 February 2024, 14:34:23 UTC, committed by GitHub on 12 February 2024, 14:34:23 UTC
Co-authored-by: Boris Sekachev <boris.sekachev@yandex.ru>
1 parent 4e2b2df
deploy_gpu.sh
#!/bin/bash
# Sample commands to deploy nuclio functions on GPU
set -eu
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
FUNCTIONS_DIR=${1:-$SCRIPT_DIR}
nuctl create project cvat --platform local
shopt -s globstar
for func_config in "$FUNCTIONS_DIR"/**/function-gpu.yaml
do
func_root="$(dirname "$func_config")"
func_rel_path="$(realpath --relative-to="$SCRIPT_DIR" "$(dirname "$func_root")")"
echo "Deploying $func_rel_path function..."
nuctl deploy --project-name cvat --path "$func_root" \
--file "$func_config" --platform local
done
nuctl get function --platform local
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...