Permalink
Browse files

Add start_all.sh to start all services in local mode

  • Loading branch information...
1 parent 02dc1b0 commit dc93eeeed1d88f31bf9063e454b0f81d9096590f @yunshengb yunshengb committed Sep 3, 2016
Showing with 24 additions and 2 deletions.
  1. +1 −1 Makefile
  2. +6 −1 tools/README.md
  3. +17 −0 tools/start_all.sh
View
@@ -18,4 +18,4 @@ local:
cd tools && make && cd ../lucida && make
start_all:
- cd lucida/commandcenter && make start_server && sleep 5 && cd ../speechrecognition/kaldi_gstreamer_asr && make start_server && cd ../../imagematching/opencv_imm && make start_server && cd ../../questionanswering/OpenEphyra && make start_server && cd ../../calendar && make start_server
+ cd tools && ./start_all.sh
View
@@ -23,9 +23,14 @@ and various packages installed via `pip`.
- `install_mongodb.sh`: [MongoDB](https://www.mongodb.com/)
and [C++ legacy driver](https://github.com/mongodb/mongo-cxx-driver/tree/legacy)
-Besides, if you want to use Wikipedia as an additional data source for [OpenEphyra](../lucida/questionanswering/OpenEphyra), please run `./download_wiki_index.sh` and export `wiki_indri_index`. When deploying, you need to mount the Wikipedia database to the Kubernetes cluster, so please move the database to the host volume directory where other user databases are stored.
+Other scripts:
+
+- `download_wiki_index.sh`: if you want to use Wikipedia as an additional data source for [OpenEphyra](../lucida/questionanswering/OpenEphyra), please run `./download_wiki_index.sh` and export `wiki_indri_index`. When deploying, you need to mount the Wikipedia database to the Kubernetes cluster, so please move the database to the host volume directory where other user databases are stored.
(refer to [`deploy/qa-controller.yaml`](deploy/qa-controller.yaml) for details).
+- `start_all.sh`: if you want to use a subset of services, please modify this file which is called
+by [`the top-level Makefile`](../Makefile) to start all the services.
+
## Notes
1. This setup has been tested for Ubuntu 14.04 (64 bit), gcc 4.8, and Python 2.7.9, but
View
@@ -0,0 +1,17 @@
+# Modify the paths below for a subset of services.
+declare -a services=(
+ "$(pwd)/../lucida/commandcenter"
+ "$(pwd)/../lucida/speechrecognition/kaldi_gstreamer_asr"
+ "$(pwd)/../lucida/imagematching/opencv_imm"
+ "$(pwd)/../lucida/questionanswering/OpenEphyra"
+ "$(pwd)/../lucida/calendar"
+ "$(pwd)/../lucida/djinntonic/dig"
+ "$(pwd)/../lucida/djinntonic/face"
+ "$(pwd)/../lucida/djinntonic/imc")
+
+for i in "${services[@]}"
+do
+ echo "Starting service in $i"
+ cd $i
+ make start_server
+done

0 comments on commit dc93eee

Please sign in to comment.