-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstartup.sh
More file actions
executable file
·34 lines (26 loc) · 909 Bytes
/
startup.sh
File metadata and controls
executable file
·34 lines (26 loc) · 909 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
28
29
30
31
32
33
34
# bin/bash
echo "*******************"
echo "*** START BUILD ***"
echo "*******************"
echo "Checking if venv exists:"
FILE=./venv
if test -f "$FILE"; then
echo "$FILE exist"
else
echo "$FILE didn't exist, make it..."
python3 -m venv venv
fi
echo "Access to the virtualenv for the setting"
source venv/bin/activate
echo "****** INSTALLING DEPENDENCIES ******"
pip install numpy
echo "***** INSTALLING DECODERS *******"
sh ctc-decoders.sh
echo "***** INSTALLING REQUIREMENTS ******"
pip install -r requirements.txt
echo "***** BUILD DOCKER IMAGES ******"
cd rasa
sudo docker network create jarvis-net
sudo docker run -it -p 5055:5055 --network jarvis-net --mount "type=bind,source=$(pwd)/,target=/app" --name action-server rasa-actions
sudo docker run -it -p 5005:5005 --network jarvis-net --mount "type=bind,source=$(pwd)/,target=/app" rasa-shell
echo " Build successfull: Status OK"