forked from RasaHQ/rasa_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·29 lines (24 loc) · 791 Bytes
/
entrypoint.sh
File metadata and controls
executable file
·29 lines (24 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -e
function print_help {
echo "Available options:"
echo " start commands (Rasa Core cmdline arguments) - Start Rasa Core server"
echo " train - Train a dialogue model"
echo " start -h - Print Rasa Core help"
echo " help - Print this help"
echo " run - Run an arbitrary command inside the container"
}
case ${1} in
start)
exec python -m rasa_core.run --enable_api "${@:2}"
;;
run)
exec "${@:2}"
;;
train)
exec python -m rasa_core.train -s ./stories.md -d ./domain.yml -o ./out "${@:2}"
;;
*)
print_help
;;
esac