The api which serves all of the Daphne interfaces
- Registry
923405430231.dkr.ecr.us-east-2.amazonaws.com/brain
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 923405430231.dkr.ecr.us-east-2.amazonaws.com
docker-compose build
docker-compose up -d
dshell brain
. run.sh
docker build -f DockerfileDev -t apazagab/brain:latest .
docker run --network=daphne-network --name=brain apazagab/brain:latest
docker build -f DockerfileProd -t 923405430231.dkr.ecr.us-east-2.amazonaws.com/brain:latest .
docker push 923405430231.dkr.ecr.us-east-2.amazonaws.com/brain:latest
docker build -f DockerfileProd -t 923405430231.dkr.ecr.us-east-2.amazonaws.com/brain:fast-deploy .
docker push 923405430231.dkr.ecr.us-east-2.amazonaws.com/brain:fast-deploy
-
Clone the repository or download a zip file of the last commit (https://help.github.com/articles/cloning-a-repository/)
-
Install python3 on the system if not in it yet (https://www.python.org/downloads/ or use packet manager if in Linux)
-
Create a python 3 virtual environment inside the cloned folder (http://python-guide-pt-br.readthedocs.io/en/latest/dev/virtualenvs/)
- Install the latest PostgreSQL on the system if not in it yet (https://www.postgresql.org/download/ or use a packet manager if in Linux)
- Install the latest version of Java Development Kit (JDK) if not in it yet (http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html or use a packet manager if using Linux)
-
start the containers with
docker-compose up -
index the historian database with
docker exec -it historian_db bashscrapy crawl ceosdb_scraper
-
create command models with
docker exec -it command_classifier bashpython3 question_generator.pypython3 train.pyexitdocker cp command_classifier:/app/command_classifier/models ./dialogue