Skip to content

Commit

Permalink
update inv image to node 8.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jum-s committed Oct 16, 2018
1 parent 4ac8128 commit 26695ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
14 changes: 3 additions & 11 deletions Dockerfile.inventaire
@@ -1,15 +1,7 @@
FROM node:6.11.1
ENV USER=inventaire
FROM node:8.12.0-jessie

RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y curl \
zsh \
git \
nginx \
graphicsmagick \
openssl \
inotify-tools \
&& apt-get install -y curl zsh git graphicsmagick inotify-tools \
&& apt-get clean

CMD ["npm", "start"]
CMD ["npm", "start"]
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -45,10 +45,12 @@ Check out [official doc](https://docs.docker.com/compose/)

## Load wikidata into elasticsearch

Make sure ES import limit is above entities-search-engige import rate, by raising the limit
Make sure ES import limit is above entities-search-engige import rate, by [closing the index](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html) first, raising the limit & reopen the index

```
docker-compose exec entities-search-engine curl -XPUT http://elasticsearch:9200/wikidata/_settings -d '{"index.mapping.total_fields.limit": 20000}'
curl -XPOST http://localhost:9200/wikidata/_close
curl -XPUT http://localhost:9200/wikidata/_settings -d '{"index.mapping.total_fields.limit": 20000}'
curl -XPOST http://localhost:9200/wikidata/_open
```

start the containers `docker-compose up`
Expand Down
1 change: 0 additions & 1 deletion docker-compose.test.yml
Expand Up @@ -12,7 +12,6 @@ services:
environment:
NODE_ENV: "tests"
NODE_APP_INSTANCE: "tests-alt"
working_dir: /opt/inventaire
entities-search-engine:
environment:
NODE_ENV: "tests"

0 comments on commit 26695ff

Please sign in to comment.