From ba9014328f9f5a8cfaeb2a4dd725b1934c2e5951 Mon Sep 17 00:00:00 2001 From: Vincent Jumo Date: Mon, 8 Oct 2018 14:59:36 +0200 Subject: [PATCH] backup volumes folder creation, updating readme --- .gitignore | 4 ++-- README.md | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a5daa35..8a38a2f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ inventaire entities-search-engine -data/couch -data/es \ No newline at end of file +data +log \ No newline at end of file diff --git a/README.md b/README.md index fb224b9..ca19dc2 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ git clone https://github.com/inventaire/inventaire.git git clone https://github.com/inventaire/entities-search-engine.git ``` +Create empty folders for docker volume to dump backup. In accordance with docker-compose volumes, example: `mkdir data couch-test couch es` + Start the magic, build everything at once ! ``` @@ -57,7 +59,9 @@ type=humans docker-compose exec entities-search-engine ./bin/dump_wikidata_subset $claim $type ``` -for more [info](https://github.com/inventaire/entities-search-engine/blob/master/docs/wikidata_filtered_dump_import.md) +[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) ## Fixtures @@ -85,3 +89,7 @@ Execute tests script or execute directly the test command `docker-compose exec inventaire ./node_modules/.bin/mocha --compilers coffee:coffee-script/register --timeout 20000` + +Tip : create a symbolic link on your machine between the inventaire folder and docker working directory on your machine at `/opt/`, in order to autocomplete path to test file to execute + +`sudo ln ~/path/to/inventaire-docker/inventaire /opt -s` \ No newline at end of file