Updated Docker
This commit is contained in:
parent
3fa8d2cee9
commit
9d6412dad6
|
@ -13,6 +13,8 @@ else
|
||||||
make start_langdetect &
|
make start_langdetect &
|
||||||
echo "### Starting CoffeeHouse-SpamDetect ###"
|
echo "### Starting CoffeeHouse-SpamDetect ###"
|
||||||
make start_spamdetect &
|
make start_spamdetect &
|
||||||
|
echo "### Starting CoffeeHouse-CoreNLP ###"
|
||||||
|
make start_corenlp &
|
||||||
|
|
||||||
while sleep 60; do
|
while sleep 60; do
|
||||||
|
|
||||||
|
@ -32,5 +34,12 @@ else
|
||||||
echo "ERROR: coffeehouse_spamdetection has been terminated, terminating container."
|
echo "ERROR: coffeehouse_spamdetection has been terminated, terminating container."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ps aux | grep edu.stanford.nlp.pipeline.StanfordCoreNLPServer | grep -q -v grep
|
||||||
|
CORENLP_STATUS=$?
|
||||||
|
if [ $CORENLP_STATUS -ne 0 ]; then
|
||||||
|
echo "ERROR: coffeehouse_corenlp has been terminated, terminating container."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
|
@ -10,7 +10,7 @@ read -p 'Enter your 25-50 character PAT: ' GIT_API_KEY
|
||||||
echo " #### Cloning CoffeeHousePy"
|
echo " #### Cloning CoffeeHousePy"
|
||||||
git clone https://${GIT_API_KEY}@github.com/Intellivoid/CoffeeHousePy.git
|
git clone https://${GIT_API_KEY}@github.com/Intellivoid/CoffeeHousePy.git
|
||||||
cd /CoffeeHousePy
|
cd /CoffeeHousePy
|
||||||
git checkout production
|
git checkout corenlp
|
||||||
|
|
||||||
echo " #### Preparing System for Python"
|
echo " #### Preparing System for Python"
|
||||||
make system_prep_python
|
make system_prep_python
|
||||||
|
@ -21,5 +21,8 @@ make system_prep_pip
|
||||||
echo " #### Preparing System for GCC"
|
echo " #### Preparing System for GCC"
|
||||||
make system_prep_gcc
|
make system_prep_gcc
|
||||||
|
|
||||||
|
echo " #### Preparing System for Java"
|
||||||
|
make system_prep_java
|
||||||
|
|
||||||
echo " #### Building and Installing CoffeeHousePy"
|
echo " #### Building and Installing CoffeeHousePy"
|
||||||
make install
|
make install
|
1
Makefile
1
Makefile
|
@ -147,6 +147,7 @@ install:
|
||||||
make install_translation
|
make install_translation
|
||||||
make install_langdetect
|
make install_langdetect
|
||||||
make install_spamdetect
|
make install_spamdetect
|
||||||
|
make build_corenlp
|
||||||
|
|
||||||
# ======================================================================================================================
|
# ======================================================================================================================
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue