Skip to content

Commit

Permalink
Merge pull request #472 from lappis-unb/notebooks_improovement
Browse files Browse the repository at this point in the history
Notebooks improovement
  • Loading branch information
RochaCarla authored May 8, 2019
2 parents a19602d + a4735e4 commit 213cbf4
Show file tree
Hide file tree
Showing 4 changed files with 1,637 additions and 4,598 deletions.
14 changes: 12 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,20 +167,30 @@ services:
- 5031:5032



# =============================== Notebooks =================================
notebooks:
build:
context: .
dockerfile: ./docker/notebooks/notebooks.Dockerfile
environment:
- BOT_DIR_PATH=../../coach/
- BOT_DOMAIN_PATH=../../coach/domain.yml
- BOT_NLU_CONFIG_PATH=../../coach/nlu_config.yml
- BOT_STORIES_PATH=../../coach/data/stories/
- BOT_INTENTS_PATH=../../coach/data/intents/
- BOT_MODELS_PATH=../../coach/models/
- BOT_MODELS_NLU_PATH=../../coach/models/nlu/current/
- BOT_MODELS_DIALOGUE_PATH=../../coach/models/dialogue
volumes:
- ./bot:/work/bot
- ./coach:/work/bot
- ./notebooks:/work/notebooks
ports:
- 8888:8888


volumes:
esdata:
driver: local
esbackup:
models:

9 changes: 4 additions & 5 deletions docker/notebooks/notebooks.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
from python:3.6-slim

user root

run apt update && apt install -y git gcc make curl

run python -m pip install --upgrade pip

add ./bot.requirements.txt /tmp
add ./docker/bot/requirements.txt /tmp

run pip install -r /tmp/bot.requirements.txt
run pip install -r /tmp/requirements.txt
run python -c "import nltk; nltk.download('stopwords');"

run apt-get update && apt-get install -y graphviz libgraphviz-dev pkg-config

# Pygraphviz depends on package graphviz wich needs to be configurated
# acording to each SO. because of it it's not added to bot.requirements
# acording to each OS. because of it it's not added to bot.requirements
run pip install jupyter pygraphviz==1.5

workdir /work/
Expand Down
Loading

0 comments on commit 213cbf4

Please sign in to comment.