- install docker
- install docker-compose
- install python3.6 or above
sudo apt-get install python3.6 python3.6-dev
- setup a virtualenv (
mkvirtualenv
,pyvenv
, or similar)
- install apt-get dependencies
sudo ./install_deps.sh
- install python dependencies
make
- for some reason dev dependencies are not installing properly with pip-sync ;(
- if things are not working, feel free to run again:
pip install -r requirements.txt
pip install -r requirements-dev.txt
- add
127.0.0.1 kafka
to/etc/hosts
- if you are on a machine with a fixed IP, set that IP in
KAFKA_ADVERTISED_HOST_NAME
- alternatively try
network_mode: host
in docker-compose.yml - ARGH
- if you are on a machine with a fixed IP, set that IP in
- download spacy model
python -m spacy download en
- alternative:
python -m spacy download en_core_web_lg
(or '_sm', '_md') - FIXME: can we download only parts?
https://stackoverflow.com/a/41644953
python -m spacy.en.download parser
- alternative:
- copy
sample.env
to.env
and edit
- start kafka, zookeeper and mongodb
docker-compose up -d
- launch faust application
./run-faust.py