-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start to make components easier to deploy (See #64).
- Loading branch information
Showing
11 changed files
with
128 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
plugin_dirs := $(wildcard plugin/*/) | ||
plugin_obs := $(foreach plugin,$(plugin_dirs),$(plugin)plugin.so) | ||
plugin_src := $(patsubst %plugin.so,%*.go,$(plugin_obs)) | ||
quicklearn_bin := resources/quickrank/bin/quicklearn | ||
go_source = *.go cmd/searchrefiner/*.go | ||
|
||
SERVER = server | ||
|
||
plugin: $(plugin_obs) | ||
PHONEY: run all plugin clean | ||
PHONEY: run all plugin clean quicklearn | ||
|
||
# These compile the quicklearn binary, which are required for the QueryLens plugin. | ||
$(quicklearn_bin): | ||
@git clone --recursive https://github.com/hpclab/quickrank.git | ||
@cd quickrank && mkdir build_ && cd build_ && cmake .. -DCMAKE_CXX_COMPILER=g++-5 -DCMAKE_BUILD_TYPE=Release && make | ||
@mv quickrank quickrank/resources | ||
|
||
quicklearn: $(quicklearn_bin) | ||
|
||
# The main server compilation step. It depends on the compilation of any plugins that exist. | ||
$(SERVER): $(plugin_obs) $(go_source) | ||
go build -o server cmd/searchrefiner/server.go | ||
|
||
# The plugins are just shared object files that should only need to be recompiled if changed. | ||
.SECONDEXPANSION: | ||
$(plugin_obs): $$(patsubst %plugin.so,%*.go,$$@) | ||
go build -buildmode=plugin -o $@ $^ | ||
|
||
run: clean $(SERVER) | ||
# Running the server may optionally depend on quicklearn. | ||
run: quicklearn $(SERVER) | ||
@./server | ||
|
||
clean: | ||
@[ -f server ] && rm $(foreach plugin,$(plugin_obs),$(plugin)) server] || true | ||
@[ -f server ] && rm $(foreach plugin,$(plugin_obs),$(plugin)) server || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,13 @@ | |
"Email": "[email protected]", | ||
"APIKey": "1234abcde" | ||
}, | ||
"Mode": "", | ||
"EnableAll": true, | ||
"Options": { | ||
"Cui2VecEmbeddings": "path/to/cui2vec_precomputed.bin", | ||
"Cui2VecMappings": "path/to/cuis.csv", | ||
"Quiche": "path/to/quiche.cache", | ||
"QuickRank": "path/to/quicklearn" | ||
"Mode": "", | ||
"Resources": { | ||
"Cui2VecEmbeddings": "resources/cui2vec_precomputed.bin", | ||
"Cui2VecMappings": "resources/cuis.csv", | ||
"Quiche": "resources/quiche.cache", | ||
"QuickRank": "resources/quickrank/bin/quicklearn" | ||
}, | ||
"Services": { | ||
"MetaMapURL": "ielab-metamap", | ||
|
@@ -32,8 +32,5 @@ | |
"Merged": false, | ||
"Sources": "cui,es" | ||
}, | ||
"ExchangeServerAddress": "https://abc.com/exchange", | ||
"OtherServiceAddresses": { | ||
"SRA": "" | ||
} | ||
"ExchangeServerAddress": "https://ielab-sysrev3.uqcloud.net/exchange" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters