update inv image to node 8.12

This commit is contained in:
Vincent Jumo
2018-10-16 18:32:06 +02:00
committed by maxlath
parent 4ac8128eb7
commit f007083950
3 changed files with 7 additions and 14 deletions

View File

@@ -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"]

View File

@@ -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`

View File

@@ -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"