CofeehousePy/Makefile

191 lines
5.1 KiB
Makefile
Raw Normal View History

2020-12-25 21:00:04 +01:00
clean_apt:
2020-12-25 20:35:34 +01:00
rm -rf mods/apt/build mods/apt/dist mods/apt/coffeehousemod_apt.egg-info
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
clean_stopwords:
2020-12-25 20:35:34 +01:00
rm -rf mods/stopwords/build mods/stopwords/dist mods/stopwords/coffeehousemod_stopwords.egg-info
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
clean_tokenizer:
2020-12-25 20:35:34 +01:00
rm -rf mods/tokenizer/build mods/tokenizer/dist mods/tokenizer/coffeehousemod_tokenizer.egg-info
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
clean_dltc:
rm -rf dltc/build dltc/dist dltc/coffeehouse_dltc.egg-info
2020-12-25 20:16:54 +01:00
2020-12-25 21:00:04 +01:00
clean_nlpfr:
rm -rf nlpfr/build nlpfr/dist nlpfr/nltk.egg-info
2020-12-25 21:03:32 +01:00
clean_alg:
2020-12-25 21:34:45 +01:00
rm -rf alg/build alg/dist alg/coffeehouse_alg.egg-info
2020-12-25 21:03:32 +01:00
2020-12-26 23:41:16 +01:00
clean_rf:
rm -rf resource_fetch/build resource_fetch/dist resource_fetch/resource_fetch.egg-info
2020-12-25 21:14:57 +01:00
clean_his:
rm -rf hyper_internal_service/build hyper_internal_service/dist hyper_internal_service/hyper_internal_service.egg-info
2020-12-27 22:58:57 +01:00
clean_langdetect:
rm -rf services/language_detection/build services/language_detection/dist services/language_detection/coffeehouse_languagedetection.egg-info
2020-12-28 05:08:53 +01:00
clean_spamdetect:
rm -rf services/spam_detection/build services/spam_detection/dist services/spam_detection/coffeehouse_spamdetection.egg-info
clean_translation:
rm -rf services/translation/build services/translation/dist services/translation/coffeehouse_translation.egg-info
2021-01-09 04:34:35 +01:00
clean_corenlp:
cd services/corenlp; make clean
2020-12-25 21:00:04 +01:00
clean:
make clean_apt clean_stopwords clean_tokenizer clean_nlpfr
make clean_dltc
2020-12-25 21:14:57 +01:00
make clean_his
2020-12-25 21:03:32 +01:00
make clean_alg
2020-12-26 23:41:16 +01:00
make clean_rf
make clean_translation
2020-12-27 22:58:57 +01:00
make clean_langdetect
2020-12-28 05:08:53 +01:00
make clean_spamdetect
2021-01-09 04:34:35 +01:00
make clean_corenlp
2020-12-25 21:00:04 +01:00
# ======================================================================================================================
build_apt:
2020-12-26 23:41:16 +01:00
cd mods/apt; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
build_stopwords:
2020-12-26 23:41:16 +01:00
cd mods/stopwords; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
build_tokenizer:
2020-12-26 23:41:16 +01:00
cd mods/tokenizer; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
build_mods:
make build_apt build_stopwords build_tokenizer
build_nlpfr:
make build_mods
2020-12-26 23:41:16 +01:00
cd nlpfr; python3 setup.py build; python3 setup.py sdist
2020-12-25 21:00:04 +01:00
build_dltc:
2020-12-26 23:41:16 +01:00
cd dltc; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:16:54 +01:00
2020-12-25 21:03:32 +01:00
build_alg:
2020-12-26 23:41:16 +01:00
cd alg; python3 setup.py build; python3 setup.py sdist
2020-12-25 21:14:57 +01:00
build_his:
2020-12-26 23:41:16 +01:00
cd hyper_internal_service; python3 setup.py build; python3 setup.py sdist
build_rf:
cd resource_fetch; python3 setup.py build; python3 setup.py sdist
2020-12-25 21:03:32 +01:00
2020-12-27 22:58:57 +01:00
build_langdetect:
cd services/language_detection; python3 setup.py build; python3 setup.py sdist
2020-12-28 05:08:53 +01:00
build_spamdetect:
cd services/spam_detection; python3 setup.py build; python3 setup.py sdist
build_translation:
cd services/translation; python3 setup.py build; python3 setup.py sdist
2021-01-09 04:24:32 +01:00
build_corenlp:
cd services/corenlp; make build
2020-12-25 21:00:04 +01:00
build:
make build_nlpfr
2020-12-25 21:14:57 +01:00
make build_his
2020-12-25 21:00:04 +01:00
make build_dltc
2020-12-25 21:03:32 +01:00
make build_alg
2020-12-26 23:41:16 +01:00
make build_rf
make buid_translation
2020-12-27 22:58:57 +01:00
make build_langdetect
2020-12-28 05:08:53 +01:00
make build_spamdetect
2021-01-09 04:34:35 +01:00
make build_corenlp
2020-12-25 21:00:04 +01:00
# ======================================================================================================================
install_apt:
2020-12-26 23:41:16 +01:00
cd mods/apt; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_stopwords:
2020-12-26 23:41:16 +01:00
cd mods/stopwords; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_tokenizer:
2020-12-26 23:41:16 +01:00
cd mods/tokenizer; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_mods:
make install_apt install_stopwords install_tokenizer
install_nlpfr:
make install_mods
2020-12-26 23:41:16 +01:00
cd nlpfr; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_dltc:
2020-12-26 23:41:16 +01:00
cd dltc; python3 setup.py install
2020-12-25 21:00:04 +01:00
2020-12-25 21:03:32 +01:00
install_alg:
2020-12-26 23:41:16 +01:00
cd alg; python3 setup.py install
2020-12-25 21:03:32 +01:00
2020-12-25 21:14:57 +01:00
install_his:
2020-12-26 23:41:16 +01:00
cd hyper_internal_service; python3 -m pip install -Ur dev_requirements.txt; python3 setup.py install
install_rf:
cd resource_fetch; python3 setup.py install
2020-12-27 22:58:57 +01:00
python3 -m resource_fetch
install_langdetect:
cd services/language_detection; python3 setup.py install
2020-12-25 21:14:57 +01:00
2020-12-28 05:08:53 +01:00
install_spamdetect:
cd services/spam_detection; python3 setup.py install
install_translation:
cd services/translation; python3 setup.py install
2020-12-25 21:00:04 +01:00
install:
2020-12-26 23:41:16 +01:00
make install_rf
2020-12-25 21:03:32 +01:00
make install_nlpfr
2020-12-25 21:14:57 +01:00
make install_his
2020-12-25 21:03:32 +01:00
make install_dltc
make install_alg
make install_translation
2020-12-27 22:58:57 +01:00
make install_langdetect
2020-12-28 05:08:53 +01:00
make install_spamdetect
2020-12-25 21:14:57 +01:00
# ======================================================================================================================
2020-12-25 21:34:45 +01:00
system_prep_python:
2020-12-26 23:41:16 +01:00
apt -y install python3 python3-distutils python3-dev python3-setuptools
2020-12-25 21:34:45 +01:00
2020-12-25 21:14:57 +01:00
system_prep_pip:
2020-12-26 02:47:36 +01:00
apt -y install wget curl
2020-12-25 21:14:57 +01:00
wget https://bootstrap.pypa.io/get-pip.py
2020-12-26 23:41:16 +01:00
python3 get-pip.py
2020-12-25 21:14:57 +01:00
rm get-pip.py
system_prep_gcc:
2020-12-27 23:06:07 +01:00
apt -y install gcc build-essential
2021-01-09 04:29:06 +01:00
system_prep_java:
apt -y install openjdk-8-jre openjdk-8-jdk ant
2020-12-27 23:06:07 +01:00
# ======================================================================================================================
start_langdetect:
2020-12-28 05:08:53 +01:00
python3 -m coffeehouse_languagedetection --start-server
start_spamdetect:
python3 -m coffeehouse_spamdetection --start-server
start_translation:
2021-01-09 01:43:27 +01:00
python3 -m coffeehouse_translation --start-server
2021-01-09 04:25:30 +01:00
start_corenlp:
cd services/cornlp; make start
2021-01-09 01:43:27 +01:00
# ======================================================================================================================
docker_build:
docker build -t="coffeehouse_utils" -f Dockerfile .
docker_run:
2021-01-09 04:26:25 +01:00
docker run -it --name coffeehouse_utils -h coffeehouse_utils --restart always -p 5601:5601 -p 5606:5606 -p 5603:5603 -p 5604:5604 coffeehouse_utils
2021-01-09 01:43:27 +01:00
docker_rm:
docker rm -f coffeehouse_utils