-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #484 from lappis-unb/update_pipeline
Update pipeline
- Loading branch information
Showing
12 changed files
with
90 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
train: | ||
docker build . -f docker/bot/coach.Dockerfile -t lappis/coach:latest | ||
docker-compose build bot | ||
|
||
test-dialogue: | ||
docker-compose run --rm bot make e2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
run-rocketchat: | ||
make config-bot | ||
python3 run-rocketchat.py | ||
|
||
run-api: | ||
python3 -m rasa_core.run -d models/dialogue -u models/nlu/current --debug \ | ||
python3 -m rasa_core.run -d /models/dialogue -u /models/nlu/current --debug \ | ||
--port 5005 --enable_api | ||
|
||
run-console: | ||
python3 -m rasa_core.run -d models/dialogue -u models/nlu/current --debug | ||
python3 -m rasa_core.run -d /models/dialogue -u /models/nlu/current --debug | ||
|
||
evaluate: | ||
python3 -m rasa_core.evaluate -d models/dialogue -s data/core/ | ||
python3 -m rasa_core.evaluate -d /models/dialogue -s data/core/ | ||
|
||
run-validator: | ||
python3 validator.py --intents data/intents/ --stories data/stories --domain domain.yml | ||
|
||
# Force Makefile to execute e2e command every time | ||
.PHONY: all e2e clean | ||
e2e: | ||
python3 -m rasa_core.evaluate default --core models/dialogue --nlu models/nlu/current --stories e2e/e2e_stories_1.md --e2e | ||
python3 -m rasa_core.evaluate default --core models/dialogue --nlu models/nlu/current --stories e2e/e2e_stories_2.md --e2e | ||
python3 -m rasa_core.evaluate default --core /models/dialogue --nlu /models/nlu/current --stories e2e/e2e_stories_1.md --e2e | ||
python3 -m rasa_core.evaluate default --core /models/dialogue --nlu /models/nlu/current --stories e2e/e2e_stories_2.md --e2e | ||
|
||
e2e-test: | ||
python3 -m rasa_core.evaluate default --core models/dialogue --nlu models/nlu/current --stories e2e/e2e_stories_erro.md --e2e | ||
python3 -m rasa_core.evaluate default --core /models/dialogue --nlu /models/nlu/current --stories e2e/e2e_stories_erro.md --e2e | ||
|
||
test-stories: | ||
python3 test_stories.py --stories e2e/ --e2e | ||
|
||
config-bot: | ||
python /scripts/bot_config.py -r ${ROCKETCHAT_URL} -an ${ROCKETCHAT_ADMIN_USERNAME} -ap ${ROCKETCHAT_ADMIN_PASSWORD} -bu ${ROCKETCHAT_BOT_USERNAME} -bp ${ROCKETCHAT_BOT_PASSWORD} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/bash | ||
|
||
sshpass -p $1 ssh -o StrictHostKeyChecking=no root@$2 <<-'ENDSSH' | ||
cd rouana/ | ||
docker-compose -f ./beta.docker-compose.yml stop bot | ||
docker-compose -f ./beta.docker-compose.yml rm -f bot | ||
docker rmi -f registry.gitlab.com/lappis-unb/services/tais/bot | ||
docker-compose -f ./beta.docker-compose.yml up -d bot | ||
cd rouana/ | ||
docker-compose stop bot | ||
docker-compose rm -f bot | ||
docker-compose pull bot | ||
docker-compose up -d bot | ||
ENDSSH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters