Revision 2754504bb291a96b0f7c42783bbbff006a2f47d4 authored by Kirill Sizov on 12 May 2023, 13:27:14 UTC, committed by GitHub on 12 May 2023, 13:27:14 UTC
1 parent 0712d7d
deploy_gpu.sh
#!/bin/bash
# Sample commands to deploy nuclio functions on GPU
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
FUNCTIONS_DIR=${1:-$SCRIPT_DIR}
nuctl create project cvat
shopt -s globstar
for func_config in "$FUNCTIONS_DIR"/**/function-gpu.yaml
do
func_root=$(dirname "$func_config")
echo "Deploying $(dirname "$func_root") function..."
nuctl deploy --project-name cvat --path "$func_root" \
--volume "$SCRIPT_DIR/common:/opt/nuclio/common" \
--file "$func_config" --platform local
done
nuctl get function
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...