-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
colin.gao
committed
Sep 18, 2019
1 parent
e9e8a77
commit 036a8b6
Showing
6 changed files
with
74 additions
and
6 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,7 @@ | ||
action_endpoint: | ||
url: http://localhost:5055/webhook | ||
|
||
tracker_store: | ||
store_type: mongod | ||
url: mongodb://mongo:27017 | ||
db: chatbot |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM python:3.6-slim | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
# Default to UTF-8 file.encoding | ||
ENV LANG C.UTF-8 | ||
|
||
RUN apt-get update -qq && \ | ||
apt-get install -y --no-install-recommends \ | ||
apt-utils \ | ||
vim \ | ||
procps \ | ||
build-essential \ | ||
wget \ | ||
unzip \ | ||
openssh-client \ | ||
graphviz-dev \ | ||
pkg-config \ | ||
git-core \ | ||
openssl \ | ||
libssl-dev \ | ||
libffi6 \ | ||
libffi-dev \ | ||
libpng-dev \ | ||
curl \ | ||
python3-tk \ | ||
tk-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ | ||
mkdir /app | ||
|
||
WORKDIR /app | ||
|
||
ENV PYTHONPATH "${PYTHONPATH}:/app" | ||
|
||
COPY requirements.txt ./ | ||
|
||
RUN pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple/ && \ | ||
pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ | ||
|
||
ENTRYPOINT ["/bin/sh"] | ||
CMD ["/app/dev/run.sh"] |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
if [ ! "$(docker ps -a | grep mongo)" ] | ||
then echo "start mongo db docker"; | ||
mkdir ~/data; | ||
docker pull mongo; | ||
docker run --name mongo -p 27017:27017 -v ~/data:/data/db -itd mongo; | ||
fi | ||
|
||
CHATBOT_VERSION=0.0.1 | ||
|
||
docker build -f dev/Dockerfile.dev . -t chatbot_dev:$CHATBOT_VERSION | ||
docker run --name chatbot_dev -p 5005:5005 -p 5002:5002 --link mongo -v "$PWD":/app -itd chatbot_dev:$CHATBOT_VERSION |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
make train | ||
make run |
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,4 +1,4 @@ | ||
keras | ||
keras==2.2.4 | ||
rasa-nlu-gao>=0.3.0 | ||
rasa-sdk | ||
rasa-sdk~=1.1.0 | ||
|