You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
544 B
Bash
23 lines
544 B
Bash
#!/bin/bash
|
|
# Sample commands to deploy nuclio functions on CPU
|
|
|
|
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.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" \
|
|
--platform local
|
|
done
|
|
|
|
nuctl get function
|
|
|
|
|