-
Notifications
You must be signed in to change notification settings - Fork 203
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 #101 from lappis-unb/devel
Boilerplate V1.0
- Loading branch information
Showing
58 changed files
with
1,740 additions
and
2,529 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
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,54 +1,65 @@ | ||
build-requirements: | ||
docker build . -f docker/requirements.Dockerfile -t lappis/botrequirements:boilerplate | ||
|
||
build-coach: | ||
docker-compose build coach | ||
current_dir := $(shell pwd) | ||
|
||
build-bot: | ||
docker-compose build bot | ||
############################## BOILERPLATE ############################## | ||
first-run: | ||
make build | ||
make run-webchat | ||
|
||
build: | ||
make build-requirements | ||
make build-coach | ||
make build-bot | ||
|
||
first-run: | ||
make build | ||
make run-console | ||
build-requirements: | ||
docker build . -f docker/requirements.Dockerfile -t botrequirements | ||
|
||
train: | ||
docker build . -f docker/coach.Dockerfile -t lappis/coach:boilerplate | ||
build-bot: | ||
docker-compose build bot | ||
|
||
build-coach: | ||
docker-compose up coach | ||
|
||
run-rabbitmq: | ||
build-analytics: | ||
docker-compose up -d elasticsearch | ||
docker-compose up -d rabbitmq | ||
docker-compose up -d rabbitmq-consumer | ||
make train | ||
docker-compose up -d kibana | ||
# This sleep time is a work arround the main objetive is run the following command when elasticsearch is ready | ||
# The following command is needed just once for project. It's just a setup onfiguration script. | ||
sleep 30 | ||
docker-compose run --rm -v $(current_dir)/modules/analytics/setup_elastic.py:/analytics/setup_elastic.py bot python /analytics/setup_elastic.py | ||
docker-compose run --rm -v $(current_dir)/modules/analytics/:/analytics/ bot python /analytics/import_dashboards.py | ||
echo "Não se esqueça de atualizar o arquivo endpoints.yml" | ||
sensible-browser --no-sandbox http://localhost:5601 | ||
|
||
run-elasticsearch: | ||
run-analytics: | ||
docker-compose up -d rabbitmq | ||
docker-compose up -d rabbitmq-consumer | ||
docker-compose up -d elasticsearch | ||
docker-compose run --rm -v ${CURDIR}/analytics:/analytics bot python /analytics/setup_elastic.py | ||
|
||
run-kibana: | ||
docker-compose up -d kibana | ||
sleep 100 | ||
docker-compose run --rm kibana python3.6 analytics/import_dashboards.py | ||
sensible-browser --no-sandbox http://localhost:5601 | ||
|
||
run-analytics: | ||
make run-rabbitmq | ||
make run-elasticsearch | ||
make run-kibana | ||
run-shell: | ||
docker-compose run --service-ports bot make shell | ||
|
||
run-webchat: | ||
docker-compose run -d --rm --service-ports bot-webchat | ||
sensible-browser --no-sandbox modules/webchat/index.html | ||
|
||
run-telegram: | ||
docker-compose up telegram_bot | ||
docker-compose run -d --rm --service-ports bot make telegram | ||
|
||
run-console: | ||
docker-compose run --rm bot make run-console | ||
run-notebooks: | ||
docker-compose up -d notebooks | ||
sensible-browser --no-sandbox http://localhost:8888 | ||
|
||
train: | ||
docker-compose up coach | ||
docker-compose build bot | ||
|
||
run-rocketchat: | ||
docker-compose up -d rocketchat | ||
sleep 25 | ||
docker-compose up -d bot | ||
validate: | ||
docker-compose run --rm coach rasa data validate --domain domain.yml --data data/ -vv | ||
|
||
test-dialogue: | ||
docker-compose run --rm bot make e2e | ||
visualize: | ||
docker-compose run --rm -v $(current_dir)/bot:/coach coach rasa visualize --domain domain.yml --stories data/stories.md --config config.yml --nlu data/nlu.md --out ./graph.html -vv | ||
sensible-browser --no-sandbox bot/graph.html |
Oops, something went wrong.