-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (38 loc) · 1.06 KB
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: train
# Bring down the bot and cleans database and trained models
clean:
docker compose down
cd bot/ && make clean
# Runs docker-compose stop commmand
stop:
docker compose stop
attach:
docker exec -it bot bash
build:
sudo rm -rf bot/.rasa && docker compose build --no-cache
# Generate a tar.gz file in bot/models/, that is used for the bot interpretation
train:
mkdir -p bot/models
docker compose up coach
# Prepare bot image and train the first model
prepare: build train
run-duck:
docker compose up -d duckling
run-store:
docker compose up redis postgres
run-api: run-duck
docker compose up bot
# Run actions server, as an api avaiable in localhost:5055
run-actions:
docker compose up actions
# Run tests in bot/tests/test_stories.yml
test: run-duck
docker compose up -d bot
docker compose exec bot make test
# Run tests in bot/tests/ that are in files of type .py (python files)
test-actions:
docker compose up -d bot
docker compose exec bot make test-actions
validate:
docker compose up -d bot
docker compose exec bot make validate