From daea79bd94d0178c5c2c39c2e839ab46756d5000 Mon Sep 17 00:00:00 2001 From: jums Date: Thu, 28 Nov 2019 17:07:42 +0100 Subject: [PATCH] install curl in entities-search-engine in order ton run scripts like dump_wikidata_subset --- Dockerfile.entities-search-engine | 4 ++++ README.md | 10 ++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile.entities-search-engine b/Dockerfile.entities-search-engine index 3dba4b4..38977c2 100644 --- a/Dockerfile.entities-search-engine +++ b/Dockerfile.entities-search-engine @@ -1,2 +1,6 @@ FROM node:8-alpine + +RUN apk add --no-cache curl + CMD [ "node_modules/coffee-script/bin/coffee", "server/server.coffee"] + diff --git a/README.md b/README.md index ab15ab7..285ce24 100644 --- a/README.md +++ b/README.md @@ -81,17 +81,15 @@ curl -XPUT http://localhost:9200/wikidata/_settings -d '{"index.mapping.total_fi curl -XPOST http://localhost:9200/wikidata/_open ``` -start the containers `docker-compose up` +Make sure to have containers running then : ``` -claim=P31:Q5 -type=humans -docker-compose exec entities-search-engine ./bin/dump_wikidata_subset $claim $type +docker-compose exec entities-search-engine ./bin/dump_wikidata_subset P31:Q5 humans ``` -[more info on importing some wikidata items](https://github.com/inventaire/inventaire-deploy/install_entities_search_engine) +[More info on importing some wikidata items](https://github.com/inventaire/inventaire-deploy/install_entities_search_engine) -more docs [wikidata filtered dump import](https://github.com/inventaire/entities-search-engine/blob/master/docs/wikidata_filtered_dump_import.mdFv) +More docs [wikidata filtered dump import](https://github.com/inventaire/entities-search-engine/blob/master/docs/wikidata_filtered_dump_import.mdFv) ## Fixtures