Skip to content

Commit ba14037

Browse files
author
Yunsheng Bai
committed
CMD: add readme
1 parent be99417 commit ba14037

File tree

4 files changed

+119
-72
lines changed

4 files changed

+119
-72
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.git
2+
kuberlucida.tar

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,4 @@ tools/mongo-c-driver-1.3.0/*
5656
tools/mongo-cxx-driver/*
5757
mongoData
5858
OpenEphyraData
59+
kuberlucida.tar

docker-compose.yml

Lines changed: 74 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
## $ docker-compose up
33

44
CMD:
5-
image: lucida3
5+
image: gcr.io/kuberlucida/lucida:20160606
66
ports:
77
- "3000:3000"
8-
command: bash -c "cd commandcenter/; python app.py"
8+
command: bash -c "export DOCKER=True && cd commandcenter/; python app.py"
99
links:
10-
- DB
10+
- mongo
1111
- IMM
1212
- QA
13-
# - ensemble
13+
- ensemble
1414
- CA
1515

16-
DB:
16+
mongo:
1717
volumes:
1818
- mongoData:/data/db
1919
image: mongo:3.0.2
@@ -30,88 +30,90 @@ asr:
3030
- "8089:8089" # asr FE
3131

3232
IMM:
33-
image: lucida3
34-
command: bash -c "cd imagematching/opencv_imm/server/; ./imm_server"
33+
image: gcr.io/kuberlucida/lucida:20160606
34+
command: bash -c "export DOCKER=True && cd imagematching/opencv_imm/server/; ./imm_server"
3535
links:
3636
- QA
37-
- DB
37+
- mongo
3838

3939
QA:
40-
image: lucida3
40+
image: gcr.io/kuberlucida/lucida:20160606
4141
volumes:
4242
- OpenEphyraData:/usr/local/lucida/lucida/questionanswering/OpenEphyra/db
4343
command: bash -c "cd questionanswering/OpenEphyra/; java -Djava.library.path=lib/search/ -classpath bin:lib/learn/jsoup-1.8.3.jar:lib/ml/maxent.jar:lib/ml/minorthird.jar:lib/nlp/jwnl.jar:lib/nlp/lingpipe.jar:lib/nlp/opennlp-tools.jar:lib/nlp/plingstemmer.jar:lib/nlp/snowball.jar:lib/nlp/stanford-ner.jar:lib/nlp/stanford-parser.jar:lib/nlp/stanford-postagger.jar:lib/qa/javelin.jar:lib/search/bing-search-java-sdk.jar:lib/search/googleapi.jar:lib/search/indri.jar:lib/search/yahoosearch.jar:lib/thrift/libthrift-0.9.2.jar:lib/thrift/log4j-1.2.14.jar:lib/thrift/slf4j-api-1.5.8.jar:lib/thrift/slf4j-log4j12-1.5.8.jar:lib/util/commons-logging.jar:lib/util/gson.jar:lib/util/htmlparser.jar:lib/util/jetty-all.jar:lib/util/log4j.jar:lib/util/servlet-api.jar:lib/util/trove.jar lucida.main.QADaemon"
44+
ports:
45+
- "8083:8083" # so that "QA_PORT_8083_TCP_ADDR" can be accessed by IMM
4446

4547
CA:
46-
image: lucida3
48+
image: gcr.io/kuberlucida/lucida:20160606
4749
command: bash -c "cd calendar/; ./gradlew run"
4850

49-
# dbpedia:
50-
# image: fuseki
51-
# ports:
52-
# - "3037:3037"
53-
# volumes:
54-
# - /home/daedalus/QAEnsemble/data/db/:/jena-fuseki-1.1.1/db/
55-
# command: ./fuseki-server --port 3037 --loc db /dbpedia
51+
dbpedia:
52+
image: fuseki
53+
ports:
54+
- "3037:3037"
55+
volumes:
56+
- /home/daedalus/QAEnsemble/data/db/:/jena-fuseki-1.1.1/db/
57+
command: ./fuseki-server --port 3037 --loc db /dbpedia
5658

57-
# enwiki:
58-
# image: solr
59-
# ports:
60-
# - "8983:8983"
61-
# volumes:
62-
# - /home/daedalus/QAEnsemble/data/enwiki/collection1/:/solr-4.6.0/example/enwiki/collection1/
63-
# command: java -Dsolr.solr.home=enwiki -jar start.jar
59+
enwiki:
60+
image: solr
61+
ports:
62+
- "8983:8983"
63+
volumes:
64+
- /home/daedalus/QAEnsemble/data/enwiki/collection1/:/solr-4.6.0/example/enwiki/collection1/
65+
command: java -Dsolr.solr.home=enwiki -jar start.jar
6466

65-
# freebase:
66-
# image: fuseki
67-
# ports:
68-
# - "3030:3030"
69-
# volumes:
70-
# - /home/daedalus/QAEnsemble/data/d-freebase/:/jena-fuseki-1.1.1/d-freebase/
71-
# command: ./fuseki-server --loc d-freebase /freebase
67+
freebase:
68+
image: fuseki
69+
ports:
70+
- "3030:3030"
71+
volumes:
72+
- /home/daedalus/QAEnsemble/data/d-freebase/:/jena-fuseki-1.1.1/d-freebase/
73+
command: ./fuseki-server --loc d-freebase /freebase
7274

73-
# label1:
74-
# image: labels
75-
# ports:
76-
# - "5000:5000"
77-
# volumes:
78-
# - /home/daedalus/QAEnsemble/data/labels/:/shared
79-
# command: pypy /label-lookup/lookup-service.py /shared/sorted_list.dat
75+
label1:
76+
image: labels
77+
ports:
78+
- "5000:5000"
79+
volumes:
80+
- /home/daedalus/QAEnsemble/data/labels/:/shared
81+
command: pypy /label-lookup/lookup-service.py /shared/sorted_list.dat
8082

81-
# label2:
82-
# image: labels
83-
# ports:
84-
# - "5001:5001"
85-
# volumes:
86-
# - /home/daedalus/QAEnsemble/data/labels/:/shared
87-
# command: pypy /label-lookup/lookup-service-sqlite.py /shared/labels.db
83+
label2:
84+
image: labels
85+
ports:
86+
- "5001:5001"
87+
volumes:
88+
- /home/daedalus/QAEnsemble/data/labels/:/shared
89+
command: pypy /label-lookup/lookup-service-sqlite.py /shared/labels.db
8890

89-
# webqa:
90-
# image: webqa
91-
# ports:
92-
# - "4000:4000"
93-
# volumes:
94-
# - /home/daedalus/QAEnsemble/00keys/webqa:/qaservice/conf
95-
# command: ./gradlew runRestBackend
91+
webqa:
92+
image: webqa
93+
ports:
94+
- "4000:4000"
95+
volumes:
96+
- /home/daedalus/QAEnsemble/00keys/webqa:/qaservice/conf
97+
command: ./gradlew runRestBackend
9698

97-
# yoda_offline:
98-
# image: yoda_offline_tested
99-
# links:
100-
# - enwiki:enwiki
101-
# - dbpedia:dbpedia
102-
# - freebase:freebase
103-
# - label1:label1
104-
# - label2:label2
105-
# ports:
106-
# - "4567:4567"
107-
# command: ./gradlew web -q -Dcz.brmlab.yodaqa.dbpediaurl="http://dbpedia:3037/dbpedia/query" -Dcz.brmlab.yodaqa.freebaseurl="http://freebase:3030/freebase/query" -Dcz.brmlab.yodaqa.solrurl="http://enwiki:8983/solr" -Dcz.brmlab.yodaqa.label1url="http://label1:5000" -Dcz.brmlab.yodaqa.label2url="http://label2:5001"
99+
yoda_offline:
100+
image: yoda_offline_tested
101+
links:
102+
- enwiki:enwiki
103+
- dbpedia:dbpedia
104+
- freebase:freebase
105+
- label1:label1
106+
- label2:label2
107+
ports:
108+
- "4567:4567"
109+
command: ./gradlew web -q -Dcz.brmlab.yodaqa.dbpediaurl="http://dbpedia:3037/dbpedia/query" -Dcz.brmlab.yodaqa.freebaseurl="http://freebase:3030/freebase/query" -Dcz.brmlab.yodaqa.solrurl="http://enwiki:8983/solr" -Dcz.brmlab.yodaqa.label1url="http://label1:5000" -Dcz.brmlab.yodaqa.label2url="http://label2:5001"
108110

109-
# ensemble:
110-
# image: ensemble
111-
# links:
112-
# - yoda_offline:yoda_offline
113-
# - webqa:webqa
114-
# ports:
115-
# - "9090:9090"
116-
# - "9091:9091"
117-
# command: ./gradlew runThriftBackend -Dde.rwthaachen.ensemble.webqaurl="http://webqa:4000" -Dde.rwthaachen.ensemble.webqaurl="http://yoda_offline:4567"
111+
ensemble:
112+
image: ensemble
113+
links:
114+
- yoda_offline:yoda_offline
115+
- webqa:webqa
116+
ports:
117+
- "9090:9090"
118+
- "9091:9091"
119+
command: ./gradlew runThriftBackend -Dde.rwthaachen.ensemble.webqaurl="http://webqa:4000" -Dde.rwthaachen.ensemble.yodaqaurl="http://yoda_offline:4567" -Dwordnet.database.dir=/home/fp/Downloads/WordNet-3.0/dict

lucida/commandcenter/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Command Center
2+
- Maintains a list of registered services.
3+
- Forwards a client's request to the appropriate registered services.
4+
- Returns requested information to the client.
5+
6+
## Using Lucida services
7+
You can use the supplied Lucida services in the lucida ecosystem in conjunction
8+
with the command center. These services (asr, qa, imm) are in each service's
9+
`lucida/` subdirectory. The command center must be compiled before you can compile
10+
the lucida versions of these services.
11+
12+
## Starting the command center:
13+
- Start the command center
14+
```
15+
./ccserver <port>
16+
```
17+
- Run the tests. Sample test files can be found in inputs/.
18+
```
19+
# Test image matching, speech recognition, and question-answering
20+
./ccclient --asr <AUDIO_FILE> --imm <IMAGE_FILE> (PORT)
21+
# Test speech recognition, and question-answering
22+
./ccclient --asr <AUDIO_FILE> (PORT)
23+
# Test question-answering
24+
./ccclient --qa <QUESTION> (PORT)
25+
```
26+
27+
## Running with LucidaMobile v0.1
28+
(DEPRECATED) The current implementation of the mobile application requires a
29+
node.js server as an intermediary between the mobile app and the command center.
30+
To run this node server, you must have node installed on your machine as well as
31+
npm.
32+
1) Download the thrift node packages in the command-center/ folder using
33+
```
34+
sudo npm install thrift
35+
```
36+
You should see a new folder called node_modules
37+
38+
2) Run the server using
39+
```
40+
node filetransfer_svc.js <fts_port> <cmdcenter_port>
41+
```
42+
Note that depending on how you installed node, this command could be node or
43+
nodejs

0 commit comments

Comments
 (0)